-
Notifications
You must be signed in to change notification settings - Fork 887
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
File not found exception when requesting token #436
Comments
I updated the demo app to using android x. I am also using the latest library version. The build is fine. I am able to see the sso page. I can login but the redirect does not happen as expected.
This is a snippet of my manifest.xml
|
You'll get a FileNotFoundException if the server responds with a 404 response code for your token URL. Please check again that you have specified the right token endpoint for the IDP you are integrating with. |
Im getting the same error but I'm using my own keycloak server. I get the SSO login screen but when it does the callback I get: 06-17 02:15:42.500 26098-26098/com.google.codelabs.appauth W/AppAuthSample: Token Exchange failed I check the Auth and Token URI and they are correct and on the keycloak server I see I have active session with my login. |
@Johnnie843 were you able to resolve this issue? I'm also getting the same error with my Keycloak server. |
Just for future readers: (When using Keycloak) |
I am using the google app auth example. I modified the urls as per my oauth provider.
I have specified the a valid authorization endpoint, client id, redirect uri, token uri, scope(openid, profile, email), response type (Code). I don't know if there is a way to add consumer secret. I have not seen anywhere in the sample code a way to add consumer secret.
When I run the app, I see our sso page, I am able to login, redirect happens. When the request to get token gets executed, I get an exception. The token request is failing. Any idea why this would happen? The token exchange url is correct and I am not sure why it is complaining about file not being found at that particular token url. Any pointers on digging more into this issue?
The text was updated successfully, but these errors were encountered: