azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

id_token_lifetime_secs can be set to more than 24 hours

Open nulllogicone opened this issue 1 year ago • 6 comments

I wanted to increase the lifetime of an id_token to be valid for 3 days and when I upload the policy the error message of B2C says that "the value should be between 5min and 10080 min (7 days) and the refresh token lifetime should be greater than ID token lifetime".

Is the maximum value in the documentation correct or is it possible to use higher values?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

nulllogicone avatar May 22 '23 09:05 nulllogicone

@nulllogicone Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT avatar May 22 '23 14:05 AjayBathini-MSFT

@nulllogicone We have been following up with the PG team regarding your question and will confirm you soon. Thanks for being patient.

YashikaTyagii avatar May 25 '23 09:05 YashikaTyagii

@nulllogicone can you help with this case?

YashikaTyagii avatar Jun 01 '23 04:06 YashikaTyagii

I would be happy to help, what can I do? To be more precise about the issue: It is about this sentence in the documentation

id_token_lifetime_secs - ID token lifetimes (seconds). The default is 3,600 (1 hour). The minimum is 300 (5 minutes). The maximum is 86,400 (24 hours).

But I use a higher value and it seems to work so the documentation should be updated to the correct value

nulllogicone avatar Jun 01 '23 06:06 nulllogicone

@nulllogicone to confirm, what do you have yours set to?

MarileeTurscak-MSFT avatar Jun 01 '23 23:06 MarileeTurscak-MSFT

I have those settings and seems to work

<Item Key="id_token_lifetime_secs">259200</Item>
<Item Key="token_lifetime_secs">86400</Item>
<Item Key="refresh_token_lifetime_secs">259200</Item>

nulllogicone avatar Jun 02 '23 06:06 nulllogicone

@nulllogicone

We apologize for the delay in our response. We're working to update our documentation. For now, we'll close this issue, then track it internally #please-close.

kengaderdus avatar Jun 26 '23 14:06 kengaderdus