Skip to content
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

🐛 fix for "expires_at" / "expires_in" param when "None" is specified #227

Merged
merged 1 commit into from
May 5, 2020
Merged

🐛 fix for "expires_at" / "expires_in" param when "None" is specified #227

merged 1 commit into from
May 5, 2020

Conversation

stefanitsky
Copy link
Contributor

@stefanitsky stefanitsky commented May 3, 2020

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Description
Some providers provide endless access tokens, therefore, if you specify None for expires_at or expires_in - a token initialization error occurs.

For example, such services are GitHub and Gitlab. Moreover, in the case of the Gitlab, the token for updating is returned, but without expires_at (long-live bug and it won't be fixed, probably).

Links:

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

@stefanitsky stefanitsky changed the title 🐛 fix for "expires_at" / "expires_in" param when "None" is specified 🐛 fix for "expires_at" / "expires_in" param when "None" is specified May 3, 2020
@lepture lepture merged commit 86231c3 into lepture:master May 5, 2020
@lepture
Copy link
Owner

lepture commented May 5, 2020

Thanks

@fboudra
Copy link

fboudra commented May 16, 2020

Does it mean we can implement like Gitlab/Doorkeeper is doing and use authlib/OAuth 2 server to provide a custom access token expiration (endless)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants