Hi Devs,

I am using an adaptive authentication script similar to one below in a
federated authentication flow.



*function onLoginRequest(context) {    executeStep(1, {        onSuccess:
function (context) {*
*                      var user = context.currentKnownSubject*
*                      var userClaim =
user.remoteClaims["http://wso2.org/claims/email
<http://wso2.org/claims/email>"];*
*                      Log.info("Username"+ user.username);*
*                      Log.info("Email"+ userClaim);*


*        }    });}*

When the user signs in through the federated IDP everything works as
expected. The issue happens if somehow the user invokes the* /oauth2/authorize
*endpoint again (without revoking the user session in IS side) to initiate
the login flow. Then the user claims and username are printed as *null*
values.

I am using an updated IS 5.8.0 pack. Appreciate any insight into the issue
and a way to solve this.

Thanks,
Sameera
-- 
*Sameera Wickramasekara*
Senior Software Engineer
WSO2
lean . enterprise . middleware
Mobile : +94(0) 714652035
<https://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to