-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add scope to refresh_token #256
Add scope to refresh_token #256
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the addition is correct 👍 left a comment
auth0/v3/authentication/get_token.py
Outdated
@@ -164,7 +164,8 @@ def login(self, client_id, client_secret, username, password, scope, realm, | |||
} | |||
) | |||
|
|||
def refresh_token(self, client_id, client_secret, refresh_token, grant_type='refresh_token'): | |||
def refresh_token(self, client_id, client_secret, refresh_token, scope, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will be a breaking change for those calling it without named arguments. We should place the new value on the last place.
the empty string default
|
Changes
Adding
scope
param torefresh_token
.References
The auth0 API supports the
scope
param when refreshing token. https://auth0.com/docs/api/authentication#refresh-tokenTesting
Checklist