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
The refresh token's presence is mandatory according to the current implementation. If it is not present, 401 is returned, forcing the login flow.
There are two problems:
the refresh token's presence should not be mandatory for authorization
the currently the refresh token is not even requested with the default configuration of Nebraska, as it misses the offline_access scope.
How authorization happens If the refresh token is mandatroy, but it is not even requested? The current implementaion checks only for nil value and doesn't check for empty string too which is held by the refresh_token key in the session map.
Impact
Login flow triggered multiple times. See network tab.
Task: [ describe the task performing when encountering the bug ]
Action(s): Add offline_access scope to the default config. Extend if statement to check empty string. Require refresh_token only if access token has expired.
Error: Absent of refresh_token, the login flow is triggered
Expected behavior
Should be able to obtain the refresh token and use it without triggering the login flow at least once.
The text was updated successfully, but these errors were encountered:
Description
The refresh token's presence is mandatory according to the current implementation. If it is not present, 401 is returned, forcing the login flow.
There are two problems:
offline_access
scope.How authorization happens If the refresh token is mandatroy, but it is not even requested? The current implementaion checks only for nil value and doesn't check for empty string too which is held by the refresh_token key in the session map.
Impact
Environment and steps to reproduce
offline_access
scope to the default config. Extend if statement to check empty string. Require refresh_token only if access token has expired.Expected behavior
Should be able to obtain the refresh token and use it without triggering the login flow at least once.
The text was updated successfully, but these errors were encountered: