Praveen
Praveen

Reputation: 737

AWS cognito - Can we modify the redirect URL supplied by Amazon Cognito when it authenticates using google provider

AWS cognito doc says Developers must add Amazon Cognito User Pool domain URL https://your-user-pool-domain/oauth2/idpresponse in the Google app's Authorized redirect URIs. Is it possible to modify the redirect url provided by cognito when signing -in with google so that call back directly come to application instead of aws-cognito.

For example: I can add a valid redirect url as "https://myapp/callback/" in google app. When signing-in with google using aws cognito hosted page - aws coginto supply the redirect url as "https://myapp/callback/" instead of https://your-user-pool-domain/oauth2/idpresponse

Upvotes: 4

Views: 4054

Answers (1)

F_SO_K
F_SO_K

Reputation: 14859

No, you have to use the Amazon Cognito User Pool domain URL. That's the only supported method if you are using Cognito. Otherwise Cognito wouldn't know anything about your external identity.

Upvotes: 1

Related Questions