AWS Cognito OAuth2 access the STATE or SCOPE parameter by some Lambda Trigger

Viewed 193

When a User is accessing my API and they authenticate through Cognito is it possible to access the STATE of the OAUTH2 AUTH request somehow in one of the lambda triggers?

1 Answers

Unfortunately as per the documentation there is no way to access the state parameter in a Cognito trigger. You can however access it in your OAuth2 callback URL, it's passed as a query parameter.

Related