Delegate authentication to Oauth2Proxy.

When to Use

  • oauth2-proxy user: Use this authentication method if you want to delegate authentication to an external Oauth2Proxy service.

Setup Instructions

To start Keep with Oauth2Proxy authentication, set the following environment variables:

Frontend Environment Variables

Environment VariableDescriptionRequiredDefault Value
AUTH_TYPESet to ‘OAUTH2PROXY’ for OAUTH2PROXY authenticationYes-

Backend Environment Variables

Environment VariableDescriptionRequiredDefault Value
AUTH_TYPESet to ‘OAUTH2PROXY’ for OAUTH2PROXY authenticationYes-
KEEP_OAUTH2_PROXY_USER_HEADERHeader for the authenticated user’s emailYesx-forwarded-email
KEEP_OAUTH2_PROXY_ROLE_HEADERHeader for the authenticated user’s roleYesx-forwarded-groups
KEEP_OAUTH2_PROXY_AUTO_CREATE_USERAutomatically create user if not existsNotrue
KEEP_OAUTH2_PROXY_ADMIN_ROLERole name for admin usersNoadmin
KEEP_OAUTH2_PROXY_NOC_ROLERole name for NOC (Network Operations Center) usersNonoc
KEEP_OAUTH2_PROXY_WEBHOOK_ROLERole name for webhook usersNowebhook