-
Notifications
You must be signed in to change notification settings - Fork 49
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
AndroidX new auth0Client Adds a slash at the end of the Issuer and causes a mismatch exception #330
Comments
I have faced the same issue |
My exception is as the blow: |
@Crorpa Have you found a solution for this? |
Can you elaborate what the issuer is? Are you saying your issuer with auth0 does not have a trailing slash? If you are using another identity provider, and not auth0, please know this is designed to only work with auth0. If you use a different identity provider, you should be fine just using IdentityModel.OidcClient like we use under the hood. |
@AliKarimiENT Sorry, I couldn't find any solution, I don't use this nugget anymore, finally I did this manually without any nugget or library. @frederikprijck Yes, I'm using auth0, Okta authentication by code, I think that's the problem because when I used authentication by token it works well but not with authentication by code. |
@Crorpa After trying many times, I decided to stop using it because of poor support and switched to using the OidcClient nuget package instead. It works well and I was also able to display it as a WebView, and the configuration works there too. |
Checklist
Description
When doing Login Async on Xamarin (Android) using AndroidX nugget it return an exception: Issuer (iss) claim mismatch in the ID token; expected "https://domain/", found "https://domain".
I can see this Issuer at Auth0client/base/Non_public members/_idtokenRequirements/Issuer
It seems that instantiating auth0client adds a slash at the end of Issuer, because I put the domain without that slash.
Reproduction
Follow Auth0.oidclient.AndroidX guide, this for example:
https://auth0.com/docs/quickstart/native/net-android-ios/interactive
Additional context
No response
auth0-oidc-client-net version
AndroiX 4.0.0
.NET version
.Net Standard 2.1
Platform
Android
Platform version(s)
13.0
The text was updated successfully, but these errors were encountered: