oauth2ConfigGuard (oauth2/types.ts)

logto · packages/connectors/connector-oauth2/src/oauth2/types.ts · typescript · MPL-2.0
auth, Auth / Identity

Defines OAuth 2.0 configuration and response schemas for validating connector settings and token endpoint data.

// Source: https://github.com/logto-io/logto | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';

import { tokenResponseScopeGuard } from '@logto/connector-kit';

/**
 * OAuth 2.0 Client Authentication methods that are used by Clients to authenticate to the Authorization Server when using the Token Endpoint.
 */
export enum TokenEndpointAuthMethod {
  ClientSecretBasic = 'client_secret_basic',
  ClientSecretPost = 'client_secret_post',
  ClientSecretJwt = 'client_secret_jwt',
}

/*
 * Enumeration of algorithms supported for JWT signing when using client sec

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key