-
Notifications
You must be signed in to change notification settings - Fork 115
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
Google with android says "Custom scheme URIs are not allowed for 'WEB' client type" #242
Comments
Updated capacitor to meet last dependencies: npx cap doctor output:
Did npx cap sync after that. Just in case. But I'm still getting the error message. |
I also tried with Azure Portal, and... it works great, I can even validate the id_token afterwards in a server: {
appId: _(redacted)_,
authorizationBaseUrl: 'https://login.microsoftonline.com/_(redacted)_/oauth2/v2.0/authorize',
scope: "openid email",
accessTokenEndpoint: 'https://login.microsoftonline.com/_(redacted)_/oauth2/v2.0/token',
resourceUrl: "https://graph.microsoft.com/v1.0/me/",
responseType: "code",
pkceEnabled: true,
logsEnabled: true,
android: {
redirectUrl: 'com.visionblo.apps.movilidadandina://oauth/redirect'
}
} I don't understand what am I doing wrong with Google. Anyways, I was using Google as a test, the final version was meant to authenticate against an Azure Portal. Should I close this ticket or leave it open? |
Thx for the information. I have a upcoming release myself and will try it myself. |
Description
Can't get Google to login with android. It says:
Custom scheme URIs are not allowed for 'WEB' client type.
I'm puzzled by this error because I thought the plugin used some native android library to do the login on android. I must have misconfigured something, at least because many people have succesfully used this plugin before, but I can't figure out what I'm doing wrong.
Capacitor version:
Capacitor 5.0.3
Run
npx cap doctor
:After adding package (removed it on update to capacitor 5, so I dunno what's going on with doctor):
After replacing .MainActivity with com.visionblo.apps.movilidadandina.MainActivity:
Library version:
OAuth Provider:
Your Plugin Configuration
Affected Platform(s):
AndroidManifest.xml
The text was updated successfully, but these errors were encountered: