You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Which version of Duende BFF are you using?
version 2.0 Which version of .NET are you using?
version 6.0 Describe the bug
When my access token expired for the first, the AddOpenIdConnectAccessTokenManagement detects and subsequently renew and
brings me the data. However, after about 2 to 3 times of renewing my access token, it stops and return null when getting the access token using await HttpContext.GetUserAccessTokenAsync(). What could be the possible cause of this and is there a way I can send a request to get a new token and then retry my request?
To Reproduce
To reproduce this, set the token life time to about 5mins and try making a request after the 5mins.
The request will bring data even though the access token has expired (meaning there was a refreshed token used).
Repeating it for about 2 to 3 calls, the token will now be null and the request will fail.
Expected behavior
I thought since the AddOpenIdConnectAccessTokenManagement manages the access token and refresh token, there should always be a new access token generated after the access token time has expired and the user has not been logout.
Which version of Duende BFF are you using?
version 2.0
Which version of .NET are you using?
version 6.0
Describe the bug
When my access token expired for the first, the AddOpenIdConnectAccessTokenManagement detects and subsequently renew and
brings me the data. However, after about 2 to 3 times of renewing my access token, it stops and return null when getting the access token using await HttpContext.GetUserAccessTokenAsync(). What could be the possible cause of this and is there a way I can send a request to get a new token and then retry my request?
To Reproduce
To reproduce this, set the token life time to about 5mins and try making a request after the 5mins.
The request will bring data even though the access token has expired (meaning there was a refreshed token used).
Repeating it for about 2 to 3 calls, the token will now be null and the request will fail.
Expected behavior
I thought since the AddOpenIdConnectAccessTokenManagement manages the access token and refresh token, there should always be a new access token generated after the access token time has expired and the user has not been logout.
Any solution to this?