P
Paul Koufalis
Guest
OE 11.3.2 I am looking for some guidance regarding OERealm authentication. I have read the documentation and the SPAInstructions.pdf and it's still not 100% clear. This is what I have done: Copied hybridrealm.cls, properties.cls to sp2krealm.cls and sp2krealproperties.cls Modified them accordingly for the new names Copied these and spaservice.propertiesto the PROPATH of my state-free APSV Changed appSecurity-basic-oerealm to point to my apsv I only changed AppServer and realmClass under OERealmUserDetails Change web.xml to use appSecurity-basic-oerealm Added usernames and passwords to the sp2k DB to which the Apsv is connected Turned on debugging in log4j.prop When I attempt to access my rest service, I get a username/password popup which does not accept my sp2k._USER username and password. What I see in the apsv.server.log: 14/08/07@16:21:51.135-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:91) Loading properties from file: spaservice.properties [14/08/07@16:21:51.135-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:95) Opening properties file: C:\Apps\OpenEdge\oe113_wrk\sports\spaservice.properties [14/08/07@16:21:51.135-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:98) Loading properties file: C:\Apps\OpenEdge\oe113_wrk\sports\spaservice.properties [14/08/07@16:21:51.135-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:106) Loaded property with value: [14/08/07@16:21:51.135-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:106) Loaded property DebugMsg with value: true [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:106) Loaded property Password with value: oech1::20333c34252a2137 [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'LoadProps sp2kRealmProperties' Line:106) Loaded property Role with value: SpaClient [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'sp2kRealm sp2kRealm' Line:25) Loaded property file spaservice.properties [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'sp2kRealm sp2kRealm' Line:25) Password: oech1::20333c34252a2137 [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'sp2kRealm sp2kRealm' Line:25) Role: SpaClient [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- (Procedure: 'sp2kRealm sp2kRealm' Line:25) DebugMsg: True [14/08/07@16:21:51.136-0400] P-007408 T-009196 1 AS -- Unauthorized client and in my webapp...adapter\log: 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmAuthProvider retrieveUser - Retrieving OERealm user account: pk 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmAuthProvider retrieveUser - Retrieving OERealm user account: pk 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] INFO com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Loading user account: pk 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] INFO com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Loading user account: pk 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Locating OERealm user: pk 2014-08-07 16:22:51,341 567461 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Locating OERealm user: pk 2014-08-07 16:22:51,347 567467 [http-bio-8980-exec-64] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for pk re: Realm o4gl run-time error: com.progress.open4gl.RunTime4GLErrorException: ERROR condition: Unauthorized client (7211) 2014-08-07 16:22:51,347 567467 [http-bio-8980-exec-64] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for pk re: Realm o4gl run-time error: com.progress.open4gl.RunTime4GLErrorException: ERROR condition: Unauthorized client (7211) 2014-08-07 16:22:51,348 567468 [http-bio-8980-exec-64] WARN com.progress.rest.security.OERealmAuthProvider retrieveUser - User not found: pk 2014-08-07 16:22:51,348 567468 [http-bio-8980-exec-64] WARN com.progress.rest.security.OERealmAuthProvider retrieveUser - User not found: pk 2014-08-07 16:22:51,348 567468 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmAuthProvider authenticate - User 'pk' not found 2014-08-07 16:22:51,348 567468 [http-bio-8980-exec-64] DEBUG com.progress.rest.security.OERealmAuthProvider authenticate - User 'pk' not found TIA
Continue reading...
Continue reading...