question

Joel Auterson avatar image
Joel Auterson asked

'Ignore nonce' field in OpenID Connect

I'm trying to log in to PlayFab using OpenID Connect. On token reuse, I get informed by PlayFab that "token nonce reuse is not permitted" - despite having the 'ignore nonce' field checked. What does this field actually do?

I note the other questions on this topic; however simply logging in again with the Epic identity provider is not possible due to the way the SDK interacts with launcher's exchange tokens, which are extremely short-lived.

Authentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

To reuse the token, you need to check "Ignore nonce" in your OpenId Connection setting and use an id token with “nonce” set to null. You can refer to Unity: Facebook Limited login - Playfab Community which mentioned this.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Joel Auterson avatar image Joel Auterson commented ·

Thanks for your response. Am I to understand then that 'ignore nonce' is actually 'allow nonce to be null' and is therefore only applicable when using an identity provider over which I have control of the token? This is not something that can be done with Epic.

0 Likes 0 ·
Gosen Gao avatar image Gosen Gao Joel Auterson commented ·

Yes, that’s correct. Currently, you need to have the control of the token to use “Ignore nonce”. If Epic does not support giving developers control over tokens, then “Ignore nonce” maybe not works for you. You can post a feature request for LoginWithOpenID to support "Ignore nonce" without checking nonce value in Id token.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.