Authority provides a simple yet flexible authentication system using OAuth.
Register your application with the desired OAuth provider.
Obtain the client ID and client secret.
Set these in the environment variables OAUTH_CLIENT_ID
and OAUTH_CLIENT_SECRET
.
Users will be redirected to the OAuth provider for authentication.
Once authenticated, the provider will return an authorization code.
This code can be exchanged for an access token, which can be used for further API requests.