auth0-samples / auth0-android-sample

Auth0 Integration Samples for Android Applications
https://auth0.com/docs/quickstart/native/android
MIT License
77 stars 141 forks source link

Android SDK with PCKE #83

Closed etanxing closed 4 years ago

etanxing commented 4 years ago

Hi There,

In https://auth0.com/docs/flows/concepts/auth-code-pkce it said The easiest way to implement the Authorization Code Flow with PKCE is to follow our Mobile/Native Quickstarts. so I followed this repo but got com.auth0.android.authentication.AuthenticationException: Could not verify the ID token error.

Here is my config:

WebAuthProvider.login(auth0)
    .withScheme("https")
    .withAudience(String.format("https://%s/userinfo", getString(R.string.com_auth0_domain)))
    .start(this, loginCallback);

Thanks

lbalmaceda commented 4 years ago

There should be a cause associated with that exception instance, see if you can get it with the debugger and share it here. It's probable that your application is not configured as OpenID compliant. Check the dashboard, application settings, advanced settings, OAuth, and see if the OpenID / OIDC switch is ON.

adithya-sree commented 4 years ago

I was seeing this error when my device date didn't match up with the actual time. Make sure your device is set to the Use network provided time property and it should work.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

lbalmaceda commented 4 years ago

Closing until more info is provided. If you still need help, please re-open.