Type Alias: OAuth2Authentication¶
OAuth2Authentication =
OAuth2StaticCodeAuthentication|OAuth2DynamicCodeAuthentication
Defined in: types.ts:662
Authenticate using the OAuth2 Authorization Code flow. You must specify the authorization URL, token exchange URL, and scopes here as part of the pack definition. You'll provide the application's client ID and client secret in the pack management UI, so that these can be stored securely.
The API must use a (largely) standards-compliant implementation of OAuth2.
When useDynamicClientRegistration is true, authorizationUrl and tokenUrl become optional
as they are automatically discovered using the pack's declared MCP servers and network domains.