gpt4 book ai didi

Azure AD B2C 如何更改 token exp声明值

转载 作者:行者123 更新时间:2023-12-03 00:50:04 26 4
gpt4 key购买 nike

默认情况下,JWT 到期日期设置为一个月。当我在 azure 门户中打开策略时,它说 token 生命周期设置为 60 分钟,但被忽略。我尝试更改这些值,但没有运气。

如何创建过期日为 1 小时的 JWT?

最佳答案

AAD B2C Token lifetimes configuration

Access & ID token lifetimes (minutes): The lifetime of the OAuth 2.0 bearer token used to gain access to a protected resource.

Default = 60 minutes.
Minimum (inclusive) = 5 minutes.
Maximum (inclusive) = 1440 minutes.

Refresh token lifetime (days): The maximum time period before which a refresh token can be used to acquire a new access or ID token (and optionally, a new refresh token, if your application had been granted the offline_access scope).

Default = 14 days.
Minimum (inclusive) = 1 day.
Maximum (inclusive) = 90 days.

Refresh token sliding window lifetime (days): After this time period elapses the user is forced to re-authenticate, irrespective of the validity period of the most recent refresh token acquired by the application. It can only be provided if the switch is set to Bounded. It needs to be greater than or equal to the Refresh token lifetime (days) value. If the switch is set to Unbounded, you cannot provide a specific value.

Default = 90 days.
Minimum (inclusive) = 1 day.
Maximum (inclusive) = 365 days.

如何:

  1. Follow these steps to navigate to the B2C features menu on the Azure portal.

  2. Click Sign-up or sign-in policies. Note: You can use this feature on any policy type, not just on Sign-up or sign-in policies.

  3. Open a policy by clicking it. For example, click on B2C_1_SiUpIn.

  4. Click Edit at the top of the menu.

  5. Click Token, session & single sign-on config.

  6. Make your desired changes. Learn about available properties in subsequent sections.

  7. Click OK.

  8. Click Save on the top of the menu.

enter image description here

关于Azure AD B2C 如何更改 token exp声明值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48952552/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com