Summary
I am hoping to find a way to access the refresh token with Streamlit MSAL for a smoother re-auth process when the access token expires.
Steps to reproduce
Code snippet:
login_token = msal_authentication(
auth={
âclientIdâ: âxxxxxxxxxxxâ,
âauthorityâ: âhttps://login.microsoftonline.com/xxxxxxxxxxâ,
âredirectUriâ: â/â,
âpostLogoutRedirectUriâ: â/â
}, # Corresponds to the âauthâ configuration for an MSAL Instance
cache={
âcacheLocationâ: âsessionStorageâ,
âstoreAuthStateInCookieâ: False
}, # Corresponds to the âcacheâ configuration for an MSAL Instance
login_request={
âscopesâ: [ââ]
}, # Optional
logout_request={}, # Optional
login_button_text=âLoginâ, # Optional, defaults to âLoginâ
logout_button_text=âLogoutâ, # Optional, defaults to âLogoutâ
)
This will authenticate us with no problems. When I print out the login_token, I can see the access token as well as the decoded data of the token itself. However, I donât see anything on the refresh token.
If I look in the sessionStorage for the site, I can see the refresh token.
Iâve looked on PyPi Page and the GitHub that page references for examples of the refresh token, but I was unable to find anything.
Are refresh tokens currently supported? If so is there some documentation I am missing? Any insight or help is greatly appreciated.