question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open ID issues on Android Native. Authorisation code failure. Invalid Client ID

See original GitHub issue

Checklist:

  • [ 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
dg76commented, May 27, 2022

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

0reactions
softsancommented, Nov 28, 2022

@mohsinaliopt - How did you use client_secret in the code?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found