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).
This commit is contained in:
Bob Dickinson 2026-06-24 19:15:12 -07:00 • committed by GitHub
commit 5de4e911e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,16 +1,28 @@
// Types
export type {
OAuthStep,
OAuthAuthType,
AuthExecution,
AuthProtocol,
MessageType,
StatusMessage,
AuthGuidedState,
OAuthFlowState,
OAuthConnectionState,
CallbackParams,
} from "./types.js";
export { EMPTY_GUIDED_STATE } from "./types.js";
export {
EMPTY_OAUTH_FLOW_STATE,
authProtocolFromEnterpriseManaged,
} from "./types.js";
export {
buildOAuthConnectionState,
isServerOAuthConfigured,
protocolFromOAuthConfig,
} from "./connection-state.js";
export type { BuildOAuthConnectionStateParams } from "./connection-state.js";
// Storage
export type { OAuthStorage } from "./storage.js";
export type { OAuthStorage, IdpSessionState } from "./storage.js";
export { getServerSpecificKey, OAUTH_STORAGE_KEYS } from "./storage.js";
// Providers
@ -29,13 +41,14 @@ export {
// Utilities
export {
parseHttpUrl,
parseOAuthCallbackParams,
generateOAuthState,
generateOAuthStateWithExecution,
generateOAuthStateWithMode,
parseOAuthState,
generateOAuthErrorDescription,
} from "./utils.js";
export type { OAuthStateMode } from "./utils.js";
// Discovery
export { discoverScopes } from "./discovery.js";