# OIDC-conformant error

**URL:** <https://community.auth0.com/t/oidc-conformant-error/56896>\
**Category:** Get Help\
**Tags:** oidc-conformant, python, auth0\
**Created:** [January 27, 2021, 6:44pm UTC](https://community.auth0.com/t/oidc-conformant-error/56896 "2021-01-27T18:44:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.garin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thomas.garin/32/27224_2.png) [@thomas.garin](https://community.auth0.com/u/thomas.garin)\
**Post date:** [January 27, 2021, 6:44pm UTC](https://community.auth0.com/t/oidc-conformant-error/56896/1 "2021-01-27T18:44:30Z")

</div>

J’ai un soucis avec une implémentation Auth0.

Le SaaS avec lequel j’essaie de faire une intégration auth0 (application) a mis en place une brique compatible à OpenIdConnect en utilisant la librairie pyoidc et je n’ai pas la possibilité de modifier cette intégration.

Lorsque je tente de me connecter à cette application, l’erreur suivante est attrapée :

“2021-01-25T09:37:16.851Z”, wrong type of value for “updated\_at”

En recherchant dans les anciens sujets de cette communauté, j’ai trouvé la discussion suivante :

> [@OIDC ID Token claim updated\_at violates OIDC specification, breaks RP implementations](https://community.auth0.com/t/oidc-id-token-claim-updated-at-violates-oidc-specification-breaks-rp-implementations/24098):
>
> In an OpenID Connect login flow with the Auth0 OP configured in “OIDC Conformant” mode the ID Token contains the updated\_at claim which carries an invalid value type, breaking the login flow against a number of RP implementations (the ID Token carries this claim if the RP requested the scope “profile”, which many RPs do). That is, the OIDC ID Token emitted by Auth0 does not comply with the OIDC specification and breaks RP implementations, leading to an unsuccessful login flow. This has previous…

De ma compréhension de ce ticket, le paramètre OIDC conformant devrait résoudre ce point, sauf que son activation ne change rien à l’erreur attrapée.

Merci d’avance de vos retours,

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 27, 2021, 7:24pm UTC](https://community.auth0.com/t/oidc-conformant-error/56896/3 "2021-01-27T19:24:08Z")

</div>

Bonjour @thomas.garin,

(J’utilise Google Translate, donc cela peut être difficile à comprendre)

Dans le sujet que vous avez partagé, l’auteur a expliqué que `updated_at` devrait être le nombre de millisecondes depuis l’époque, mais qu’il s’agit plutôt d’une chaîne de date.

Une solution de contournement serait de créer une [règle](https://auth0.com/docs/rules) qui résout ce problème.

 ![create-a-rule](https://global.discourse-cdn.com/auth0/original/3X/0/5/0571271fbac40a7111f6358bfe0a956727418ebe.png)

 ![create-empty-rule](https://global.discourse-cdn.com/auth0/original/3X/9/1/91b5f0ce7b6f5b7ba9c5f9681fac57e39161dcf3.png)

```auto
function (user, context, callback) {
  context.idToken.updated_at = Math.floor(new Date(user.updated_at)/1000);
  return callback(null, user, context);
}

```

Original English in case that makes no sense 😄:

In the topic you shared, the author explained that `updated_at` should be the number of milliseconds since the epoch, but instead it is a date string. According to the responses in the topic, it is a known issue on the roadmap that is difficult to fix since it would introduce a breaking change for existing users.

A workaround would be to create a [Rule](https://auth0.com/docs/rules) that fixes this.

---

<div class="post-metadata">

**Author:** ![thomas.garin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thomas.garin/32/27224_2.png) [@thomas.garin](https://community.auth0.com/u/thomas.garin)\
**Post date:** [January 29, 2021, 8:35am UTC](https://community.auth0.com/t/oidc-conformant-error/56896/4 "2021-01-29T08:35:40Z")

</div>

> [@stephanie.chamblee](#):
>
> ```auto
> function (user, context, callback) {
> context.idToken.updated_at = Math.floor(new Date(user.updated_at)/1000);
> return callback(null, user, context);
> }
> 
> ```

Hi Stephanie,

Thank you for your return, it works like a charm.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 29, 2021, 12:17pm UTC](https://community.auth0.com/t/oidc-conformant-error/56896/5 "2021-01-29T12:17:01Z")

</div>

That’s great! Thanks for letting us know!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 13, 2021, 12:17pm UTC](https://community.auth0.com/t/oidc-conformant-error/56896/6 "2021-02-13T12:17:34Z")

</div>

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