@budibase/types 3.13.29 → 3.14.1
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.
|
@@ -66,6 +66,7 @@ export interface OIDCStrategyConfiguration {
|
|
|
66
66
|
clientID: string;
|
|
67
67
|
clientSecret: string;
|
|
68
68
|
callbackURL: string;
|
|
69
|
+
pkce?: PKCEMethod;
|
|
69
70
|
}
|
|
70
71
|
export interface OIDCConfigs {
|
|
71
72
|
configs: OIDCInnerConfig[];
|
|
@@ -84,6 +85,7 @@ export interface OIDCInnerConfig {
|
|
|
84
85
|
uuid: string;
|
|
85
86
|
activated: boolean;
|
|
86
87
|
scopes: string[];
|
|
88
|
+
pkce?: PKCEMethod;
|
|
87
89
|
}
|
|
88
90
|
export interface OIDCConfig extends Config<OIDCConfigs> {
|
|
89
91
|
}
|
|
@@ -127,6 +129,10 @@ export declare const isOIDCConfig: (config: Config) => config is OIDCConfig;
|
|
|
127
129
|
export declare const isSCIMConfig: (config: Config) => config is SCIMConfig;
|
|
128
130
|
export declare const isAIConfig: (config: Config) => config is AIConfig;
|
|
129
131
|
export declare const isRecaptchaConfig: (config: Config) => config is RecaptchaConfig;
|
|
132
|
+
export declare enum PKCEMethod {
|
|
133
|
+
S256 = "S256",
|
|
134
|
+
PLAIN = "plain"
|
|
135
|
+
}
|
|
130
136
|
export declare enum ConfigType {
|
|
131
137
|
SETTINGS = "settings",
|
|
132
138
|
ACCOUNT = "account",
|
|
@@ -25,6 +25,19 @@ export interface UserSSO {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export type SSOUser = User & UserSSO;
|
|
28
|
+
export type OIDCUser = User & {
|
|
29
|
+
provider: string | undefined;
|
|
30
|
+
providerType: SSOProviderType | undefined;
|
|
31
|
+
oauth2?: OAuth2 | undefined;
|
|
32
|
+
profile?: {
|
|
33
|
+
displayName?: string;
|
|
34
|
+
name?: {
|
|
35
|
+
givenName?: string;
|
|
36
|
+
familyName?: string;
|
|
37
|
+
};
|
|
38
|
+
} | undefined;
|
|
39
|
+
thirdPartyProfile?: object | undefined;
|
|
40
|
+
};
|
|
28
41
|
export declare function isSSOUser(user: User | ContextUser): user is SSOUser;
|
|
29
42
|
export interface UserIdentifier {
|
|
30
43
|
userId: string;
|