Reputation: 737
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
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