# JWT::InvalidIssuerError בעת פענוח JWT (OpenID Connect)

**URL:** <https://meta.discourse.org/t/jwt-invalidissuererror-on-decode-jwt-openid-connect/231268>\
**Category:** Product Support\
**Tags:** openid-connect\
**Created:** [27 ביוני,‏ 2022,‏ 8:58pm UTC](https://meta.discourse.org/t/jwt-invalidissuererror-on-decode-jwt-openid-connect/231268 "2022-06-27T20:58:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [27 ביוני,‏ 2022,‏ 10:10pm UTC](https://meta.discourse.org/t/jwt-invalidissuererror-on-decode-jwt-openid-connect/231268/2 "2022-06-27T22:10:21Z")

</div>

Hmm.

From the location of the discovery document, you need to assume that the issuer is `https://auth-testing.iduruguay.gub.uy/oidc/v1` since the discovery document is the issuer with `/.well-known/openid-configuration` appended to it.

Now the document itself says `issuer	"https://auth-testing.iduruguay.gub.uy"`

And then we have the [OpenID Connect Discovery document](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationValidation) which states

> [@](#):
>
> 4.3. OpenID Provider Configuration Validation
> 
> If any of the validation procedures defined in this specification fail, any operations requiring the information that failed to correctly validate MUST be aborted and the information that failed to validate MUST NOT be used.
> 
> The issuer value returned MUST be identical to the Issuer URL that was directly used to retrieve the configuration information. This MUST also be identical to the iss Claim value in ID Tokens issued from this Issuer.

And the two requirements in the last sentence are not met. The `iss` claim value is identical to the Issuer URL that was used to retrieve the configuration, but both are NOT identical to the `issuer` value returned.

So for what it is worth, I think they are wrong and you are right. Too bad that does not get you anywhere.

---

_[View the full topic](https://meta.discourse.org/t/jwt-invalidissuererror-on-decode-jwt-openid-connect/231268)._
