# 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:** 1

<div class="post-metadata">

**Author:** ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)\
**Post date:** [27 ביוני,‏ 2022,‏ 8:58pm UTC](https://meta.discourse.org/t/jwt-invalidissuererror-on-decode-jwt-openid-connect/231268/1 "2022-06-27T20:58:08Z")

</div>

Hello 👋! Good afternoon, I have a question about the OpenID Connect plugin

I’m trying to use ID Uruguay (A government OpenID Connect “provider”) with Discourse, I signed up for the test server and they sent me the necessary data.

All the flow seems to work fine except for the callback, apparently the Issuer sent in the JWT is not the same as in the discovery document.  
I already contacted Support and they said that basically the error was from Discourse (Which I don’t think so).

Is it possible to somehow add another value to “excepted issuer”?

Discovery document: [https://auth-testing.iduruguay.gub.uy/oidc/v1/.well-known/openid-configuration](https://auth-testing.iduruguay.gub.uy/oidc/v1/.well-known/openid-configuration)

> **Logs**
>
> ```plaintext
> OIDC Log: Loaded JWT
> 
> ---
> iss: https://auth-testing.iduruguay.gub.uy/oidc/v1
> sub: '7630'
> aud: '862271'
> exp: 1656363519
> iat: 1656362919
> auth_time: 1656362918
> amr:
> - urn:iduruguay:am:password
> acr: urn:iduruguay:nid:1
> nonce: 94d556d732db0db8dff0e09a174c27f2943cfe1740845abf537ff768e96c8ddf
> at_hash: eokMw_xDlqb6cXB-DkDA_A
> pais_documento:
> codigo: uy
> nombre: Uruguay
> tipo_documento:
> codigo: 68909
> nombre: C.I.
> numero_documento: '54682086'
> email: alexander.barrios@estudiante.ceibal.edu.uy
> email_verified: true
> name: Yanquis Alexander Barrios Espíndola
> given_name: Yanquis Alexander
> family_name: Barrios Espíndola
> nickname: uy-ci-54682086
> idp: Usuario gub.uy
> 
> ```
> 
> `(oidc) Authentication failure! jwt_decode_failed: JWT::InvalidIssuerError, Invalid issuer. Expected ["https://auth-testing.iduruguay.gub.uy"], received https://auth-testing.iduruguay.gub.uy/oidc/v1`

* * *

From already thank you very much! 🤗

---

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