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).
This commit is contained in:
parent
5ee347571f
commit
5de4e911e3
1 changed files with 7585 additions and 595 deletions
16
core/auth/ema/constants.ts
Normal file
16
core/auth/ema/constants.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/** 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";
|
||||
Loading…
Reference in a new issue