Closed lwang-79 closed 2 months ago
I have the same issue. The oauth domain is missing in amplify_outputs.json.
amplify_outputs.json:
...
"oauth": {
"identity_providers": [
"GOOGLE"
],
"redirect_sign_in_uri": [
...
],
"redirect_sign_out_uri": [
...
],
"response_type": "code",
"scopes": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"domain": "" <-- Domain is missing
},
...
Hey @lwang-79 @thomasoehri, thank you for reaching. Tried reproducing the issue in a new application but did not observe this behavior. The domain should get auto-generated when using the social providers. Are there any overrides being used on the auth resource? Do you observe any error messages on sandbox deploy?
I am also running into the same issue, have nothing overriding the auth resource, and have no error messages on sandbox deploy.
I have the same issue. The oauth domain is missing in amplify_outputs.json.
amplify_outputs.json:
... "oauth": { "identity_providers": [ "GOOGLE" ], "redirect_sign_in_uri": [ ... ], "redirect_sign_out_uri": [ ... ], "response_type": "code", "scopes": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ], "domain": "" <-- Domain is missing }, ...
Hey @ernieMrtnz @thomasoehri @lwang-79, could you check the version of @aws-amplify/backend-auth
and @aws-amplify/auth-construct
in the package lock file?
Tried reproing this with @aws-amplify/backend-auth@1.1.0
and @aws-amplify/auth-construct@1.1.5
but did not observe the missing domain. If you observe an older version could you try re-installing the latest version of the packages and let us know if this mitigates the issue?
Hey @ykethan, I have these in my lock file: @aws-amplify/backend-auth@1.1.0 @aws-amplify/auth-construct@1.1.5
I've also removed all lambda functions, api gateway, and event bus bridge to just have a simple auth and data resources with no luck in having the domain being set
Was able to reproduce the issue by adding name
to defineAuth. Marking as bug.
@ernieMrtnz Thank you for the findings on discord
note:
userPool resource with name configured: fooNameUserPoolDomain: UserPoolDomain {...}
userPool resource without name configured: UserPoolDomain: UserPoolDomain {...}
Was able to reproduce the issue by adding
name
to defineAuth. Marking as bug. @ernieMrtnz Thank you for the findings on discordnote: userPool resource with name configured:
fooNameUserPoolDomain: UserPoolDomain {...}
userPool resource without name configured:UserPoolDomain: UserPoolDomain {...}
Anytime! Thank you both for looking into this, really appreciate the work you've done on this library!
Environment information
Description
Configure Google Sign-In but it doesn't work.
oauth domain in
amplify_output.json
file is empty.Google Sing-In works if manually add the domain in
amplify_output.json
file. Can't definedomainPrefix
inexternalProviders
. Tried to override but failed with errorUser pool already has a domain configured.