AuthProvider is the abstract base class for OAuth integrations. Implement it to let users connect their accounts.
Abstract methods
name
Unique identifier for this provider. Used in routes and credential storage.get_url
Generate the OAuth authorization URL.Callback URL where the provider redirects after authorization. Gumstack’s callback URL is
https://api.gumstack.com/auth/callback — use this when registering your OAuth app with the third-party service.exchange
Exchange an authorization code for tokens. ReturnsTokenResponse with at least access_token.
refresh
Refresh an expired access token. ReturnsTokenResponse with new access_token.
