OAuthHandlers
Home > @backstage/plugin-auth-backend > OAuthHandlers
Any OAuth provider needs to implement this interface which has provider specific handlers for different methods to perform authentication, get access tokens, refresh tokens and perform sign out.
Signature:
export interface OAuthHandlers
Methods
Method | Description |
---|---|
handler(req) | Handle the redirect from the auth provider when the user has signed in. |
logout()? | (Optional) (Optional) Sign out of the auth provider. |
refresh(req)? | (Optional) (Optional) Given a refresh token and scope fetches a new access token from the auth provider. |
start(req) | Initiate a sign in request with an auth provider. |