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

Problem with redirect_uri #28

Open
ccamusso opened this issue Jul 19, 2022 · 1 comment
Open

Problem with redirect_uri #28

ccamusso opened this issue Jul 19, 2022 · 1 comment

Comments

@ccamusso
Copy link

I have an App with this ID: com.myapp
and I use this Google endpoint

let endpoint = 'https://accounts.google.com/o/oauth2/auth/identifier?' +
            '&response_type=permission id_token' +
            '&scope=email profile openid' +
            '&openid.realm' +
            '&include_granted_scopes=true' +
            '&client_id=XXXXXXXX.apps.googleusercontent.com' +
            '&fetch_basic_profile=true' +
            '&gsiwebsdk=2' +
            '&redirect_uri=com.myapp://oauth_callback';

The result is:

Error 404: invalid_request
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0
You can let the app developer know tht this app doesn't comply with one or more Google validation rules:
redirect_uri=com.myapp://oauth_callback

Can you help me to fix the problem?

@miraclemaker
Copy link

Google says the redirect uri needs to start with http:// or https://
https://developers.google.com/identity/protocols/oauth2/web-server#uri-validation
So it looks like using a customer url scheme will no longer work. It needs to be set up using App Links / Universal Links.

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

No branches or pull requests

2 participants