Friday, 22 February 2019

Google: Permission denied to generate login hint

I am trying to create a Google sign-in and getting the error:

Permission denied to generate login hint for target domain

Request Details

Domains

Authorized JavaScript origins

There is no restrictions for redirect_uri in docs https://developers.google.com/identity/protocols/OAuth2UserAgent#request-parameter-redirect_uri

Auth code example hosted on domain https://www.SOURCE_DOMAIN_WITH_GOOGLE_BUTTON.com :

gapi.auth2
    .init({
        client_id: `${id}.apps.googleusercontent.com`,
        scope: 'profile',
        ux_mode: 'redirect',
        redirect_uri: 'https://www.DOMAIN_FOR_REDIRECT.com/main-page/'
    })



from Google: Permission denied to generate login hint

No comments:

Post a Comment