I am integrating Amazon Cognito with a SAML identity provider which is also the sole identity provider of my app. I am using both Authorization code grant and Implicit grant flows. The allowed OAuth scopes are: aws.cognito.signin.user.admin, openid, profile, and email.
I am also retrieving the current user by calling the getCurrentUser method inside the onSuccess block of the userhandler property. While the getCurrentUser method returns the current username in the Authorization code grant flow, it returns undefined in the Implicit grant flow.
I am integrating Amazon Cognito with a SAML identity provider which is also the sole identity provider of my app. I am using both Authorization code grant and Implicit grant flows. The allowed OAuth scopes are: aws.cognito.signin.user.admin, openid, profile, and email.
I am also retrieving the current user by calling the
getCurrentUser
method inside theonSuccess
block of theuserhandler
property. While thegetCurrentUser
method returns the current username in the Authorization code grant flow, it returnsundefined
in the Implicit grant flow.Is this a known issue?