AlexVeeBee's Wiki

OAuth2

OAuth 2.0 is an authorization protocol and NOT an authentication protocol. As such, it is designed primarily as a means of granting access to a set of resources, for example, remote APIs or user data. OAuth 2.0 uses Access Tokens.

Troubleshoot

If you are having issues with redirect uri please check the listed items

Immich

Using Authentik

Provider

  1. Go to Applications > Providers
  2. Create a new Provider
  3. Choose OAuth2/OpenID Provider
https://photos.yourdomain.com
https://photos.yourdomain.com.*
http://localhost:2283
  1. Make sure you copy the Client ID and Client Secret into notepad
  2. Create the provider

for mobile

  1. Edit the Provider
  2. Scroll down to Redirect URIs/Origins (RegEx)
  3. Add URIs
app.immich:///oauth-callback
app.immich:///oauth-callback.*
  1. Save the provider and test mobile

Application

  1. Go to Applications > Applications
  2. Create a new application
  3. Use these options
  1. Hit create

Final Steps

  1. Head back to the provider
  2. Copy the OpenID Configuration Issuer into notepad

Setup in immich

  1. Go to Administration > Settings > Auth settings > OAuth
  2. Paste/Put in the values
  1. Check if these options are correct
Service scope Signing algorithim Button text
Authentik openid email profile RS256 Authentik
  1. Save the config

Gitea

Using Authentik

Provider

  1. Go to Applications > Providers
  2. Create a new provider
  3. Choose OAuth2/OpenID Provider
  1. Copy the Client Id and Client Secret into notepad
  2. Create the provider

Application

  1. Go to Applications > Applications
  2. Create a new Application
  3. Use these options
    name: Gitea
    slug: git ( Recommended )
    provider: Gitea
  4. Hit create

Final Steps

  1. Head back to the provider
  2. Copy the OpenID Configuration URL into notepad

Using Github

  1. Head to Settings > Developer Options > OAuth Apps
  2. Clock on New OAuth App
  3. Put in these values
  1. Register the Application
  2. Generate a new Client Secret
  3. Copy the Client Id and CLient Secret

Setup in Gitea

  1. Go to Sitea Administration > Identity & Access > Authentication Sources
  2. Click on Add Authentication Source

For Authentik

Paste/Put in the values

Create the Source once finished

For Github

Paste/Put in the values