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.

LoginAsync fails after update to 3.1.2

See original GitHub issue

Hopefully this is the right place for this!

We have just updated from 2.9.0 to 3.1.2, and the login now fails. Looking into the identityServer logs we are seeing the following

Invalid grant type for client: "authorization_code"

We have changed nothing on either the client (iOS), or on IdentityServer4.

I’ve compared the 2.9.0 -> 3.1.2 tags on git, but can’t see anything obvious that might be causing this. https://github.com/IdentityModel/IdentityModel.OidcClient/compare/97055bd...de3c5ee

Info

IdentityServer4 version: 2.2.0 Updated OidcClient version: 3.1.2 Oidc Flow: Hybrid on iOS

Request Content

This is the content that idSrv receives when making the login request

{
  "ClientId": "iOS",
  "ClientName": "iOS App",
  "RedirectUri": "com.<OMITTED>://auth",
  "AllowedRedirectUris": [
    "com.<OMITTED>://auth"
  ],
  "SubjectId": "anonymous",
  "ResponseType": "code",
  "ResponseMode": "query",
  "GrantType": "authorization_code",
  "RequestedScopes": "",
  "State": "4c8cHL5TGl8XETmaw92a",
  "Raw": {
    "response_type": "code",
    "nonce": "i82GNeiwertgfdwe34rGIg",
    "state": "4c8cHL52345TGl8XEmbTp",
    "code_challenge": "EB7LmP9r4Td_uihPAXwqoAN1wZAx",
    "code_challenge_method": "S256",
    "client_id": "iOS",
    "scope": "openid profile api offline_access",
    "redirect_uri": "com.<OMITTED>://auth"
  }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leastprivilegecommented, Feb 28, 2020

That’s correct.

0reactions
github-actions[bot]commented, Feb 20, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OidcClient throwing Unauthorized error after upgrade from ...
In my application, we are using OidcClient to connect with Google account. It was working fine with version 3.1.2. After upgrading to 5.0.2, ......
Read more >
Auth0.OidcClient.Android 3.4.1
Auth0 OIDC Client for Xamarin Android apps.
Read more >
FactSet Broadcast DataFeed API Java Programmer's Manual
If applications want to use a non-blocking call, the authenticateAsync(), connectAsync(), and. loginAsync() functions are available. Repeated ...
Read more >
Problem with setting up Realm Sync of Local and Cloud ...
LoginAsync (credentials, authUrl) , I want to see these changes that were made while offline(not connected to Realm Cloud, because there was no ......
Read more >
Identity and Authentication Management in SAP Business ...
SAP Business One unified user authentication. • Microsoft Windows domain account authentication. • OpenID Connect (OIDC).
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