Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How should we configure identity providers (Google, LoginWithApple, Azure)? #548

Open
gabrielbutoeru opened this issue Apr 19, 2024 · 0 comments

Comments

@gabrielbutoeru
Copy link

We are trying to configure identity providers in our project (Google, LoginWithApple, Azure).
We already updated the list of providers inside the file config-overrides.js, but now we are struggling to find a valid configuration to put in parameters.json, in particular the fields "authProvidersUserPool", "hostedUIProviderCreds", "hostedUIProviderMeta", "oAuthMetadata". Is there something we can look out as an example?

At the moment, for Google we are doing this:

"authProvidersUserPool": ["Google"],
"hostedUIProviderCreds": "[{\"ProviderName\":\"Google\",\"client_id\":\"***.apps.googleusercontent.com\",\"client_secret\":\"***\"}]",
"hostedUIProviderMeta": "[{\"ProviderName\": \"Google\", \"authorize_scopes\": \"openid email profile\", \"AttributeMapping\": {\"email\": \"email\", \"username\": \"sub\", \"given_name\": \"given_name\", \"family_name\": \"family_name\"}}]",
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:3000\",\"http://localhost:3000/\"],\"LogoutURLs\":[\"https://injection.placeholder.amazon.com/logout\"]}"

but amplify publish is failing to update the resource authamplifyIdentityBrokerAuth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant