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

Support third-party OAuth hosts #7

Merged
merged 2 commits into from Oct 15, 2021
Merged

Support third-party OAuth hosts #7

merged 2 commits into from Oct 15, 2021

Commits on Oct 15, 2021

  1. Allow for arbitrary OAuth hosts

    Not all OAuth hosts use the same routes as GitHub, for example:
    - Microsoft use /oauth2/v2.0/devicecode
    - Google use /device/code
    - Auth0 use /oauth/device/code
    
    Similar differences are present for the authorise and access token
    routes too.
    
    This commit introduces a concept of a Host, which is a container for
    the endpoints that the library uses. After this, the Hostname field is
    deprecated.
    
    Co-authored-by: Mislav Marohnić <mislav@github.com>
    jamierocks and mislav committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    6dfce11 View commit details
    Browse the repository at this point in the history
  2. Support OAuth servers using standard responses

    Co-authored-by: Mislav Marohnić <mislav@github.com>
    jamierocks and mislav committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    5b3cff9 View commit details
    Browse the repository at this point in the history