@apicurio/common-ui-components 2.0.16 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,32 @@
1
+ /**
2
+ * OIDC configuration options
3
+ */
4
+ export interface OidcAuthOptions {
5
+ url: string;
6
+ clientId: string;
7
+ redirectUri: string;
8
+ scope?: string;
9
+ logoutUrl?: string;
10
+ loadUserInfo?: boolean;
11
+ logTokens?: boolean;
12
+ tokenType?: "id" | "access";
13
+ /**
14
+ * Enable state-based redirection after OIDC authentication.
15
+ * When enabled, the user's location before authentication is stored in session storage
16
+ * and they are redirected back to that location after successful authentication.
17
+ * This is required for OIDC providers like Microsoft EntraID that don't support
18
+ * dynamic redirect URIs.
19
+ * @default true
20
+ */
21
+ useStateBasedRedirect?: boolean;
22
+ /**
23
+ * Maximum age in milliseconds for stored state entries in session storage.
24
+ * State entries older than this will be cleaned up automatically.
25
+ * Only applies when useStateBasedRedirect is enabled.
26
+ * @default 300000 (5 minutes)
27
+ */
28
+ stateMaxAge?: number;
29
+ }
1
30
  export interface AuthConfig {
2
31
  type: "none" | "basic" | "oidc";
3
32
  options?: any;