Authorization code
The user approves the application on an Infisical consent screen in their browser. Best for a platform integrating with Infisical as an external auth provider, such as one where
infisical run fetches secrets with the developer’s own permissions.Token exchange
Trusted middleware you run presents a user’s token from your identity provider and receives an Infisical token for that same user. Best for MCP servers, internal developer portals, and API gateways that have no browser to redirect through.
Choosing a flow
Managing applications
OAuth applications live at the organization level, under Organization Settings → OAuth Applications. Managing them needs permission to manage OAuth applications; token exchange additionally needs permission to manage SSO. Access token lifetime is the shortest of the application’s access token lifetime (1 day by default), your organization’s session length, and the instance default of 10 days. The application’s own value is a ceiling, not an override: it can shorten a token’s life but never extend it past what the organization allows.What a delegated token can never do
It cannot change anything under Administration, at either the organization or the project level. Creating, updating and deleting there stay with a person signed in to the dashboard:- Access control: members, groups, machine identities, roles, and additional privileges
- Usage and billing
- Audit log streams
- Organization settings: SSO and provisioning, networking, encryption, project templates, sub-organizations, OAuth applications, and workflow integrations
- Project settings: general settings, environments, tags, policies, webhooks, and encryption