feat(auth-backend): add experimental CIMD support (#32307)

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
Ben Lambert
2026-02-17 17:00:49 +01:00
committed by GitHub
parent 29fc1f8f23
commit 31de2c9b3a
17 changed files with 1967 additions and 157 deletions
+31
View File
@@ -157,5 +157,36 @@ export interface Config {
*/
tokenExpiration?: HumanDuration | string;
};
/**
* Configuration for Client ID Metadata Documents (CIMD)
*
* @see https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/
*/
experimentalClientIdMetadataDocuments?: {
/**
* Whether to enable Client ID Metadata Documents support
* Defaults to false
*/
enabled?: boolean;
/**
* A list of allowed URI patterns for client_id URLs.
* Uses glob-style pattern matching where `*` matches any characters.
* Defaults to ['*'] which allows any client_id URL.
*
* @example ['https://example.com/*', 'https://*.trusted-domain.com/*']
*/
allowedClientIdPatterns?: string[];
/**
* A list of allowed URI patterns for redirect URIs.
* Uses glob-style pattern matching where `*` matches any characters.
* Defaults to ['*'] which allows any redirect URI.
*
* @example ['http://localhost:*', 'http://127.0.0.1:*\/callback']
*/
allowedRedirectUriPatterns?: string[];
};
};
}