Azure AD B2C OpenID Connect Refresh token

前端 未结 3 1871
天命终不由人
天命终不由人 2021-01-25 09:15

I followed this example https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-web-dotnet-susi from the Azure AD B2C documentation page

3条回答
  •  囚心锁ツ
    2021-01-25 09:58

    IIRC there is no option available to auto renew from the library it self but there are multiple options you can adopt to achieve that... Simple one is from JavaScript

    1. Put a timeout function in JS and make that trigger before token going to expire. You can get that from token expiration time.
    2. Trigger MVC action / REST API method from JS and get new accestoken from B2C and update accestoken with new one.

提交回复
热议问题