0
我可以为我的自定义B2C策略检索刷新令牌,但希望将令牌生存期增加到最大限制或将滑动窗口生存期设置为“无到期”。增加B2C自定义策略中的刷新令牌使用期限
这可以通过基本策略的Azure门户B2C设置完成,但在自定义策略的门户中不可用。
我如何配置这在我的政策?
我可以为我的自定义B2C策略检索刷新令牌,但希望将令牌生存期增加到最大限制或将滑动窗口生存期设置为“无到期”。增加B2C自定义策略中的刷新令牌使用期限
这可以通过基本策略的Azure门户B2C设置完成,但在自定义策略的门户中不可用。
我如何配置这在我的政策?
结帐this article。
在您的RP技术资料中特别添加以下内容。
<Item Key="token_lifetime_secs">3600</Item>
可以像这样(从文档复制)
<ClaimsProviders>
<ClaimsProvider>
<DisplayName>Token Issuer</DisplayName>
<TechnicalProfiles>
<TechnicalProfile Id="JwtIssuer">
<Metadata>
<Item Key="token_lifetime_secs">3600</Item>
<Item Key="id_token_lifetime_secs">3600</Item>
<Item Key="refresh_token_lifetime_secs">1209600</Item>
<Item Key="rolling_refresh_token_lifetime_secs">7776000</Item>
<Item Key="IssuanceClaimPattern">AuthorityAndTenantGuid</Item>
<Item Key="AuthenticationContextReferenceClaimPattern">None</Item>
</Metadata>
</TechnicalProfile>
</TechnicalProfiles>
</ClaimsProvider>
</ClaimsProviders>