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

OAuth2: Add support for refresh tokens on Github #223

Merged
merged 1 commit into from
Jul 15, 2023

Commits on Jul 9, 2023

  1. OAuth2: Add support for refresh tokens on Github

    Github apps have optional expiration of access tokens, which leads to
    using refresh token to obtain new access token (and new refresh
    token). This patch adds support for refresh tokens on Github, which
    was previously missing.
    
    Although the Github documentation specifies that 'client_secret' is a
    required parameter for refreshing token, it is not required in this
    case for unknown reason (perhaps device flow?).
    
    Additionally after this change, new refresh token will be used
    preferentially, if present in refresh token response.
    jirijakes committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    4464511 View commit details
    Browse the repository at this point in the history