Overview
Keep supports Okta as an authentication provider, enabling:- Single Sign-On (SSO) via Okta
- OAuth2/OIDC authentication flow
- JWT token verification with JWKS
- Role-based access control through token claims
Environment Variables
Backend Environment Variables
Frontend Environment Variables
Okta Configuration
Creating an Okta Application
- Sign in to your Okta Admin Console
- Navigate to Applications > Applications
- Click Create App Integration
- Select OIDC - OpenID Connect as the sign-in method
- Select Web Application as the application type
- Click Next
Application Settings
- App integration name: Enter a name for your application (e.g., “Keep”)
- Sign-in redirect URIs: Add your callback URL:
https://your-keep-domain.com/api/auth/callback/okta - Sign-out redirect URIs: Add your sign-out URL:
https://your-keep-domain.com - Assignments: Assign the application to the appropriate users or groups
- Click Save
- Copy the Client ID and Client Secret from the application settings
Role Mapping
Keep extracts the user role from the JWT token. The role is determined in the following order:keep_roleclaim in the tokenroleclaim in the token- First entry in the
groupsclaim - Falls back to
userrole
- Navigate to Security > API > Authorization Servers
- Select your authorization server (e.g.,
default) - Go to the Claims tab
- Add a claim named
keep_roleorgroupsthat maps to the user’s Keep role

