Skip to main content

Authentication via OAuth2

AURCache supports OAuth2 authentication via various Oauth2 providers such as Authentik or Keycloak. This allows you to restrict access to your AURCache instance to only users who have authenticated with one of these services.

Setup the following Environment Variables to enable OAuth2 authentication:

VariableTypeDescriptionDefault
OAUTH_AUTH_URIStringOauth authorize endpointnull
OAUTH_TOKEN_URIStringOauth token endpointnull
OAUTH_REDIRECT_URIStringOauth redirect uri back to AURCachenull
OAUTH_CLIENT_IDStringOauth client IDnull
OAUTH_CLIENT_SECRETStringOauth client Secretnull

To disable Authentiation leave all OAUTH_* variables undefined.