OAuth2 / SSO Setup for Seafile Guide:
Since no Guide for integration exists for Seafile over at Authentik docs this here will help you out:
Step (A). Setup a OAuth Provider in Authentik:
- Applications -> Providers -> Add Provider
- Name: Seafile-oauth2-provider
- Authorization flow -> default-provider-authorization-implicit-consent (Authorize Application)
- Client type: Confidential
- Client ID: <client_id>
- Client Secret: <client_secret>
- Redirect URIs/Origins (RegEx): https://<seafile.domain.com>/oauth/callback/
- Scopes: email, openid, profile
- Leave the rest as default and save
Step (B). Setup an Application in Authentik:
- Applications -> Applications -> Add Application
- Name: Seafile
- Slug: seafile-oauth-application-slug
- Provider: Seafile-oauth2-provider
- Save
Step (C). Edit the Seafile Configuration:
- Open the Seafile configuration file:
/seafile-data/seafile/conf/seahub_settings.py
this is path you set bind to "/shared" on your seafile docker compose file