-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] refresh_in #176
Comments
Hi @henrik-me I just have the same request. I need to get new valid access token through my refresh token. |
@lzw-all-in , you can already get a new valid access token through using This feature described here is for msal to FURTHER improve our INTERNAL refresh logic, but that is transparent to you as an app developer. Yoiu are NOT blocked by this feature. |
@rayluo Thank you. I saw the usage and source code before but what I need is the api I can pass refresh token as a parameter to get the newest access token. Update: |
@lzw-all-in , do you intend to "use oauth2 api" but still connect with Microsoft identity platform (i.e. Azure Active Directory)? If so, MSAL is designed to be easier than using generic OAuth2 library. Or if you have any specific need to handle refresh token yourself, I would be curious to hear that. Either way, that would be a different topic which does not belong to this Feature Request. Feel free to create a separated issue, and/or send email to me. Thanks. |
@rayluo Yes I saw MSAL api doesn't support given refresh token to attain the newest access token. I use the api result = Azureapp.client.obtain_token_by_refresh_token(
token_item={"refresh_token" : refresh_token},
scope=app_config.RESOURCE) |
Refresh_In (token response) support.
This feature allows the service to control when MSAL should attempt to refresh the access token (ahead of its expiration)
API Review
The text was updated successfully, but these errors were encountered: