Authority
  • Introduction
  • In Action
  • Performance at Scale
  • Roadmap / Features
  • Getting Started
    • Introduction
    • Installation
    • Configuration Overview
  • Authentication
    • Authentication Guide
    • API Documentation
    • Customizing Authentication
  • Security & Error Handling
    • Security Considerations
    • Error Handling & Troubleshooting
  • Providers
    • Client Providers
    • Owner Providers
  • API Endpoints
    • API Endpoints
  • DEVELOPMENT
    • Requirements
    • Database
    • User Interface
    • Specs
    • Deployment
      • Environment Variables
  • Reference
    • OAuth Terms
    • OAuth 2 Grant Flows
      • Device Flow
      • Authorization Flow
      • Client Credentials Flow
      • Refreshing Access Tokens
      • Access Token Response
      • Json Web Tokens
      • Legacy: Implicit grant
      • Legacy: Password
    • Open ID Connect
      • Configuration
      • Registering Clients
      • User Info
Powered by GitBook
On this page
  • Setting up OAuth
  • OAuth Flow

Was this helpful?

Export as PDF
  1. Authentication

Authentication Guide

Authority provides a simple yet flexible authentication system using OAuth.

Setting up OAuth

  1. Register your application with the desired OAuth provider.

  2. Obtain the client ID and client secret.

  3. Set these in the environment variables OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET.

OAuth Flow

  • 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.

PreviousConfiguration OverviewNextAPI Documentation

Last updated 7 months ago

Was this helpful?