I’ve tried updating to these new import/methods. But my authenticate() function is still not being called (as it is in 3.0.2).
I tried disabling my script and enabling one that came pre-packaged (basic). Its authenticate() doesn’t get called either (nor does getApiVersion(), nor does getPageForStep()). When I turn on trace logs, I don’t see any sign of external authentication being entered.
I noticed there is some different session data between 3.0.2 (when my custom script gets called) and 3.1.0 (when it does not, nor does “basic”). In 3.0.2, the acr value is set to my custom script name:
2017-09-20 15:31:05,563 TRACE [qtp1395089624-12] [org.xdi.oxauth.service.AuthenticationService] (AuthenticationService.java:413) - configureSessionUser: credentials: '1,012,356,073', sessionState: 'SessionState, dn='oxAuthSessionId=4a5b2196-4082-42ee-9063-78c051c779bc,ou=session,o=@!CE11.07C5.E6C2.D744!0001!5E41.D513,o=gluu', id='4a5b2196-4082-42ee-9063-78c051c779bc', isJwt=false, lastUsedAt=Wed Sep 20 15:31:00 EDT 2017, userDn='null', authenticationTime=Wed Sep 20 15:30:26 EDT 2017, state=unauthenticated, permissionGranted=null, permissionGrantedMap=org.xdi.oxauth.model.common.SessionIdAccessMap@7051684a, sessionAttributes={auth_step=1, acr=myCustomAuthenticate, remote_ip=xx.xx.xx.xx, scope=openid uid email profile, response_type=code, redirect_uri=https://client.example.com/index.php, state=1kbm69iu4uj927dednvao0p1fj, nonce=4v5oesgadqr1grp8cn6porn3nn, client_id=@!CE11.07C5.E6C2.D744!0001!5E41.D513!0008!FD08.4D95.2D90.1F60, auth_user=myuser}, persisted=false}', credentials.userName: 'myuser', authenticatedUser.userId: 'myuser'
In 3.1.0 my script name is not in the session:
2017-09-20 16:11:28,013 TRACE [qtp1020391880-13] [org.xdi.oxauth.service.AuthenticationService] (AuthenticationService.java:407) - configureSessionUser: credentials: '1747957740', sessionId: 'SessionState {dn='oxAuthSessionId=16bb9d44-071e-4b53-98f6-bd3a1e014823,ou=session,o=@!0F64.1F9A.2111.F703!0001!E4B6.2F5D,o=gluu', id='16bb9d44-071e-4b53-98f6-bd3a1e014823', lastUsedAt=Wed Sep 20 16:11:04 EDT 2017, userDn='', authenticationTime=Wed Sep 20 16:11:04 EDT 2017, state=unauthenticated, sessionState='87138736-b221-4d1c-87c2-eaaa562cba9c', permissionGranted=null, isJwt=false, jwt=null, permissionGrantedMap=org.xdi.oxauth.model.common.SessionIdAccessMap@4d888018, involvedClients=null, sessionAttributes={auth_step=1, acr=auth_ldap_server, remote_ip=xx.xx.xx.xx, scope=openid uid email profile, response_type=code, redirect_uri=https://client.example.com/index.php, state=et4rp3822ua7mfndeo4hukoa7f, nonce=7n5a5sf10ocvf2sd6lkujumjgt, client_id=@!0F64.1F9A.2111.F703!0001!E4B6.2F5D!0008!0367.9E10.1DAC.C871}, persisted=true}', credentials.userName: 'myuser', authenticatedUser.userId: 'myuser'
This is despite having the default ACR set to myCustomAuthenticate for both Gluu servers (although I’m not entirely sure what this does).
If this is getting too much into custom authentication support, I understand. Thanks for your time.
Doug Appleyard