question

circadence-rd avatar image
circadence-rd asked

nonce requirement for OpenID?

Is there a hard and fast requirement for tokens passed to Playfab via LoginWithOpenID to contain a nonce element?

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

·
Citrus Yan avatar image
Citrus Yan answered

Hi, it seems that the nonce element is required by design, the nonce element is baked into your IdToken. If you log into your identity provider again you’ll get a new JWT with a new nonce that you can provide us. For more info, you may find this thread answered by Andy helpful: https://community.playfab.com/questions/27207/openidconnect-token-nonce-reuse-is-not-permitted.html

4 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.

circadence-rd avatar image circadence-rd commented ·

Ok, so it is required by playfab... We are getting direct access tokens, meaning there is no nonce present. Our options are find some way of forcing it into the token, IE edit the code for the provider we are using (Keycloak), or we can swap to the more traditional method of getting an authorization code and requesting a full token set, but this is problematic in Unity....

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan circadence-rd commented ·

Yeah. It’s required currently, sorry for the inconvenience. However, maybe you could make a feature request about it here: https://community.playfab.com/spaces/24/index.html

0 Likes 0 ·
circadence-rd avatar image circadence-rd Citrus Yan commented ·

I take it this is not something that would happen quickly?

0 Likes 0 ·
Show more comments

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.