# Issuer (iss) claim mismatch in the ID token;

**URL:** <https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418>\
**Category:** OAuth/OIDC\
**Tags:** mobile, xamarin\
**Created:** [July 17, 2024, 2:23pm UTC](https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418 "2024-07-17T14:23:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crorpa](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Crorpa](https://devforum.okta.com/u/Crorpa)\
**Post date:** [July 17, 2024, 2:23pm UTC](https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418/1 "2024-07-17T14:23:18Z")

</div>

Hello,

I’m trying to integrate Okta on my Xamarin application (Android) using Auth0.OidcClient.AndroiX.

I have this on my MainActivity

[Activity(Label = “Some Name”, Icon = “@s”, Theme = “@style/MainTheme”, MainLauncher = true,  
LaunchMode = LaunchMode.SingleTask ,ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]

[IntentFilter(  
new { Intent.ActionView},  
Categories = new { Intent.CategoryDefault, Intent.CategoryBrowsable },  
DataScheme = MyAppPackageName,  
DataHost = MyDomain,  
DataPathPrefix = “/android/MyAppPackageName/callback”)]

protected override void OnNewIntent(Android.Content.Intent intent)  
{  
base.OnNewIntent(intent);

```
Auth0.OidcClient.ActivityMediator.Instance.Send(intent.DataString);

```

}

And the function is this:

public async Task LoginOkta()  
{  
string attribute = “”;

```
try
{              
    string domain = UtilitiesLayer.Code.AppBase.OktaDomain;
    string clientId = UtilitiesLayer.Code.AppBase.OktaClientId;

    Console.WriteLine(" ********************" + domain + "*******************");

    Auth0ClientOptions options = new Auth0ClientOptions
    {
        Domain = domain,
        ClientId = clientId,
    };

    options.PostLogoutRedirectUri = options.RedirectUri;

    Activity activity = CrossCurrentActivity.Current.Activity;
 
    Auth0Client client = new Auth0Client(options, activity);

    IdentityModel.OidcClient.LoginResult loginResult = await client.LoginAsync();

    if (loginResult.IsError)
    {

    }
    else
    {
        attribute = loginResult.User.FindFirst(c => c.Type.ToLower().Equals(UtilitiesLayer.Code.AppBase.OktaAttribute.ToLower()))?.Value;
    }

}
catch (Exception e)
{
    Console.WriteLine(" ********************" + e.Message + "*******************");
}
return attribute;

```

}

So, when I execute the LoginAsync() it returns an exception:

Issuer (iss) claim mismatch in the ID token; expected “link://myDomain/”, found “link://myDomain”

As you can see the difference between both is a slash (“/”).

So why does the function add a slash, is there something I’m missing?

Thank you

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [July 17, 2024, 3:08pm UTC](https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418/2 "2024-07-17T15:08:48Z")

</div>

Since you’re asking about a library built by Auth0, you may want to reach out in the [Auth0 community](https://community.auth0.com/) or open a Github Issue under [this repo](https://github.com/auth0/auth0-oidc-client-net).

---

<div class="post-metadata">

**Author:** ![Crorpa](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Crorpa](https://devforum.okta.com/u/Crorpa)\
**Post date:** [July 18, 2024, 9:14am UTC](https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418/3 "2024-07-18T09:14:14Z")

</div>

Thanks Andrea, I’ll try it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [August 17, 2024, 9:15am UTC](https://devforum.okta.com/t/issuer-iss-claim-mismatch-in-the-id-token/29418/4 "2024-08-17T09:15:00Z")

</div>

Closed on August 17, 2024, 9:15am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
