Open ID issues on Android Native. Authorisation code failure. Invalid Client ID
See original GitHub issueChecklist:
- [ x] I am using the latest release
- [ x] I searched for existing GitHub issues
- [ x] I read the documentation
- [ x] I verified the client configuration matches the information in the identity provider (or I am using dynamic client registration)
- [x ] I am either using a custom URI scheme or
https
with App Links for client redirect. - [ x] I can reproduce the issue in the demo app (optional)
Configuration
- Version: 0.10.0
- Integration: (native(Java))
- Identity provider: (Microsoft)
Issue Description
Open ID issues on Android Native. Says Authorization code failure results with Invalid Client ID. I have tried the same client ID and credentials, endpoints with a sample iOS app; it works perfectly, same works for the web application.
I have Used the sample: https://github.com/openid/AppAuth-Android and https://github.com/hadiidbouk/AppAuthIdentityServer4
but results are the same, help/feedback is appreciated. thanks in advance.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Invalid Id Token Errors when manually setting android device ...
It looks like this validation was introduced https://github.com/openid/AppAuth-Android/pull/385/files and I need to disable it. note it says :.
Read more >OAuth 2.0 for Mobile & Desktop Apps - Google Developers
Go to the Credentials page. Click Create credentials > OAuth client ID. The sections below describe the client types and the redirect methods ......
Read more >Authenticate to OAuth2 services - Android Developers
In order to securely access an online service, users need to authenticate to the service—they need to provide proof of their identity.
Read more >Error: Invalid_Client - What? | Apple Developer Forums
I get the code, identityToken and everything I need - except the call to https://appleid.apple.com/auth/token - because of invalid_client.
Read more >You get an invalid client_id error - Akamai TechDocs
Try using the value of the id property in your authorization request and see what happens.. Keep in mind that you might have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same problem and it turned out it was caused by the time on the device being incorrectly set (it was a simulator and accidentally the clock went forward two hours). After I set the correct time on the device, the “Invalid Client ID” error vanished. You can find further information here:
https://github.com/openid/AppAuth-Android/issues/733
@mohsinaliopt - How did you use client_secret in the code?