inspector/core/auth/ema/constants.ts
Bob Dickinson 5de4e911e3
feat(web,core): enterprise-managed authorization (EMA) (#1509) (#1512)
Adds enterprise-managed authorization (EMA): browser-side IdP login + RFC 8693 token-exchange and JWT-bearer resource-token mint, per-server EMA opt-in in Server Settings, IdP config in Client Settings, and IdP clientSecret keychain storage. Includes the v2/main merge and review follow-ups (400 on malformed client config; normalizeIdpIssuer import consolidation).
2026-06-24 22:15:12 -04:00

16 lines
611 B
TypeScript

/** RFC 8693 token exchange grant. */
export const GRANT_TYPE_TOKEN_EXCHANGE =
"urn:ietf:params:oauth:grant-type:token-exchange";
/** RFC 7523 JWT bearer grant. */
export const GRANT_TYPE_JWT_BEARER =
"urn:ietf:params:oauth:grant-type:jwt-bearer";
/** ID Token as subject_token (OIDC). */
export const TOKEN_TYPE_ID_TOKEN = "urn:ietf:params:oauth:token-type:id_token";
/** Identity Assertion JWT Authorization Grant (ID-JAG). */
export const TOKEN_TYPE_ID_JAG = "urn:ietf:params:oauth:token-type:id-jag";
/** OIDC scopes for IdP login (leg 1). */
export const IDP_OIDC_SCOPES = "openid offline_access";