Forum Post: Single Point of Authentication

  • Thread starter Thread starter coates_aj
  • Start date Start date
Status
Not open for further replies.
C

coates_aj

Guest
Hi everyone, I am trying to set up a REST service that uses SPA and am struggling to get this working. I have done the following so far: changed contextConfigLocation parameter in web.xml to the value /WEB-INF/appSecurity-basic-oerealm.xml set up a state-free appserver (called OERealmAuth) which connects to my database Have the sample OERealm within the propath for this appserver Changed realmURL and realmClass parameters within /WEB-INF/appSecurity-basic-oerealm.xml for my REST service to reference the OERealmAuth appserver and my HybridRealm class Set up a user with the DB to authenticate against. When trying to access my REST service a prompt pops up asking for a user name and password, however I always received the error "Unauthorized". Within my log for my OERealmAuth appserver I receive the following: [14/10/29@15:20:37.839+0000] P-012052 T-011960 1 AS -- (Procedure: 'HybridRealm OpenEdge.Security.Realm.HybridRealm' Line:79) Loaded property file spaservice.properties [14/10/29@15:20:37.839+0000] P-012052 T-011960 1 AS -- (Procedure: 'HybridRealm OpenEdge.Security.Realm.HybridRealm' Line:81) Password: oech1::20333c34252a2137 [14/10/29@15:20:37.839+0000] P-012052 T-011960 1 AS -- (Procedure: 'HybridRealm OpenEdge.Security.Realm.HybridRealm' Line:83) Role: SpaClient [14/10/29@15:20:37.839+0000] P-012052 T-011960 1 AS -- (Procedure: 'HybridRealm OpenEdge.Security.Realm.HybridRealm' Line:85) DebugMsg: True [14/10/29@15:20:37.839+0000] P-012052 T-011960 1 AS -- Unauthorized client And within the adapter log file I receive the following: 2014-10-29 15:20:38,086 12040786 [http-bio-8980-exec-7] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for newuser re: Realm o4gl run-time error: com.progress.open4gl.RunTime4GLErrorException: ERROR condition: Unauthorized client (7211) 2014-10-29 15:20:38,086 12040786 [http-bio-8980-exec-7] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for newuser re: Realm o4gl run-time error: com.progress.open4gl.RunTime4GLErrorException: ERROR condition: Unauthorized client (7211) Within the ValidateClient method it appears that SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal() is returning a ?, which is causing the AppError of "Unauthorized client" to be thrown. Does anyone have any ideas what it going wrong? or other log files I can check? or settings I can change to get more detailed of what is actually going wrong? Many Thanks

Continue reading...
 
Status
Not open for further replies.
Back
Top