@goauthentik/api 2024.8.3-1729167001 → 2024.8.3-1729699127
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +25 -0
- package/dist/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/apis/AuthenticatorsApi.js +347 -0
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +10 -0
- package/dist/apis/RbacApi.js +10 -0
- package/dist/apis/SourcesApi.d.ts +257 -1
- package/dist/apis/SourcesApi.js +841 -28
- package/dist/apis/StagesApi.d.ts +85 -1
- package/dist/apis/StagesApi.js +268 -0
- package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/esm/apis/AuthenticatorsApi.js +348 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +10 -0
- package/dist/esm/apis/RbacApi.js +10 -0
- package/dist/esm/apis/SourcesApi.d.ts +257 -1
- package/dist/esm/apis/SourcesApi.js +842 -29
- package/dist/esm/apis/StagesApi.d.ts +85 -1
- package/dist/esm/apis/StagesApi.js +269 -1
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -0
- package/dist/esm/models/BackendsEnum.d.ts +1 -0
- package/dist/esm/models/BackendsEnum.js +1 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/Device.d.ts +2 -2
- package/dist/esm/models/EndpointDevice.d.ts +37 -0
- package/dist/esm/models/EndpointDevice.js +46 -0
- package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/EndpointDeviceRequest.js +46 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/FrameChallenge.d.ts +65 -0
- package/dist/esm/models/FrameChallenge.js +56 -0
- package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupKerberosSourceConnection.js +50 -0
- package/dist/esm/models/KerberosSource.d.ts +198 -0
- package/dist/esm/models/KerberosSource.js +103 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.js +59 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/KerberosSourceRequest.js +93 -0
- package/dist/esm/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/esm/models/KerberosSyncStatus.js +44 -0
- package/dist/esm/models/ModelEnum.d.ts +5 -0
- package/dist/esm/models/ModelEnum.js +5 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
- package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourceList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.js +48 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
- package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.js +90 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/UserKerberosSourceConnection.js +53 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
- package/dist/models/BackendsEnum.d.ts +1 -0
- package/dist/models/BackendsEnum.js +1 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/Device.d.ts +2 -2
- package/dist/models/EndpointDevice.d.ts +37 -0
- package/dist/models/EndpointDevice.js +53 -0
- package/dist/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/models/EndpointDeviceRequest.js +53 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/FrameChallenge.d.ts +65 -0
- package/dist/models/FrameChallenge.js +63 -0
- package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/models/FrameChallengeResponseRequest.js +50 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/models/GroupKerberosSourceConnection.js +57 -0
- package/dist/models/KerberosSource.d.ts +198 -0
- package/dist/models/KerberosSource.js +110 -0
- package/dist/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/models/KerberosSourcePropertyMapping.js +66 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.js +56 -0
- package/dist/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/models/KerberosSourceRequest.js +100 -0
- package/dist/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/models/KerberosSyncStatus.js +51 -0
- package/dist/models/ModelEnum.d.ts +5 -0
- package/dist/models/ModelEnum.js +5 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
- package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/models/PaginatedEndpointDeviceList.js +55 -0
- package/dist/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupKerberosSourceConnectionList.js +55 -0
- package/dist/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourceList.js +55 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.js +55 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
- package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
- package/dist/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedKerberosSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/models/PatchedKerberosSourceRequest.js +97 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/models/UserKerberosSourceConnection.js +60 -0
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/package.json +1 -1
- package/src/apis/AuthenticatorsApi.ts +444 -0
- package/src/apis/PropertymappingsApi.ts +350 -0
- package/src/apis/RbacApi.ts +10 -0
- package/src/apis/SourcesApi.ts +1200 -153
- package/src/apis/StagesApi.ts +345 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
- package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
- package/src/models/BackendsEnum.ts +1 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/Device.ts +2 -2
- package/src/models/EndpointDevice.ts +74 -0
- package/src/models/EndpointDeviceRequest.ts +74 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/FrameChallenge.ts +120 -0
- package/src/models/FrameChallengeResponseRequest.ts +65 -0
- package/src/models/GroupKerberosSourceConnection.ts +104 -0
- package/src/models/KerberosSource.ts +303 -0
- package/src/models/KerberosSourcePropertyMapping.ts +123 -0
- package/src/models/KerberosSourcePropertyMappingRequest.ts +83 -0
- package/src/models/KerberosSourceRequest.ts +263 -0
- package/src/models/KerberosSyncStatus.ts +80 -0
- package/src/models/ModelEnum.ts +5 -0
- package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
- package/src/models/PaginatedEndpointDeviceList.ts +88 -0
- package/src/models/PaginatedGroupKerberosSourceConnectionList.ts +88 -0
- package/src/models/PaginatedKerberosSourceList.ts +88 -0
- package/src/models/PaginatedKerberosSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedUserKerberosSourceConnectionList.ts +88 -0
- package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
- package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
- package/src/models/PatchedKerberosSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedKerberosSourceRequest.ts +260 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +106 -0
- package/src/models/UserKerberosSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +25 -0
@@ -0,0 +1,303 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.8.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
17
|
+
import {
|
18
|
+
GroupMatchingModeEnumFromJSON,
|
19
|
+
GroupMatchingModeEnumFromJSONTyped,
|
20
|
+
GroupMatchingModeEnumToJSON,
|
21
|
+
} from './GroupMatchingModeEnum';
|
22
|
+
import type { PolicyEngineMode } from './PolicyEngineMode';
|
23
|
+
import {
|
24
|
+
PolicyEngineModeFromJSON,
|
25
|
+
PolicyEngineModeFromJSONTyped,
|
26
|
+
PolicyEngineModeToJSON,
|
27
|
+
} from './PolicyEngineMode';
|
28
|
+
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
29
|
+
import {
|
30
|
+
UserMatchingModeEnumFromJSON,
|
31
|
+
UserMatchingModeEnumFromJSONTyped,
|
32
|
+
UserMatchingModeEnumToJSON,
|
33
|
+
} from './UserMatchingModeEnum';
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Kerberos Source Serializer
|
37
|
+
* @export
|
38
|
+
* @interface KerberosSource
|
39
|
+
*/
|
40
|
+
export interface KerberosSource {
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {string}
|
44
|
+
* @memberof KerberosSource
|
45
|
+
*/
|
46
|
+
readonly pk: string;
|
47
|
+
/**
|
48
|
+
* Source's display Name.
|
49
|
+
* @type {string}
|
50
|
+
* @memberof KerberosSource
|
51
|
+
*/
|
52
|
+
name: string;
|
53
|
+
/**
|
54
|
+
* Internal source name, used in URLs.
|
55
|
+
* @type {string}
|
56
|
+
* @memberof KerberosSource
|
57
|
+
*/
|
58
|
+
slug: string;
|
59
|
+
/**
|
60
|
+
*
|
61
|
+
* @type {boolean}
|
62
|
+
* @memberof KerberosSource
|
63
|
+
*/
|
64
|
+
enabled?: boolean;
|
65
|
+
/**
|
66
|
+
* Flow to use when authenticating existing users.
|
67
|
+
* @type {string}
|
68
|
+
* @memberof KerberosSource
|
69
|
+
*/
|
70
|
+
authenticationFlow?: string | null;
|
71
|
+
/**
|
72
|
+
* Flow to use when enrolling new users.
|
73
|
+
* @type {string}
|
74
|
+
* @memberof KerberosSource
|
75
|
+
*/
|
76
|
+
enrollmentFlow?: string | null;
|
77
|
+
/**
|
78
|
+
*
|
79
|
+
* @type {Array<string>}
|
80
|
+
* @memberof KerberosSource
|
81
|
+
*/
|
82
|
+
userPropertyMappings?: Array<string>;
|
83
|
+
/**
|
84
|
+
*
|
85
|
+
* @type {Array<string>}
|
86
|
+
* @memberof KerberosSource
|
87
|
+
*/
|
88
|
+
groupPropertyMappings?: Array<string>;
|
89
|
+
/**
|
90
|
+
* Get object component so that we know how to edit the object
|
91
|
+
* @type {string}
|
92
|
+
* @memberof KerberosSource
|
93
|
+
*/
|
94
|
+
readonly component: string;
|
95
|
+
/**
|
96
|
+
* Return object's verbose_name
|
97
|
+
* @type {string}
|
98
|
+
* @memberof KerberosSource
|
99
|
+
*/
|
100
|
+
readonly verboseName: string;
|
101
|
+
/**
|
102
|
+
* Return object's plural verbose_name
|
103
|
+
* @type {string}
|
104
|
+
* @memberof KerberosSource
|
105
|
+
*/
|
106
|
+
readonly verboseNamePlural: string;
|
107
|
+
/**
|
108
|
+
* Return internal model name
|
109
|
+
* @type {string}
|
110
|
+
* @memberof KerberosSource
|
111
|
+
*/
|
112
|
+
readonly metaModelName: string;
|
113
|
+
/**
|
114
|
+
*
|
115
|
+
* @type {PolicyEngineMode}
|
116
|
+
* @memberof KerberosSource
|
117
|
+
*/
|
118
|
+
policyEngineMode?: PolicyEngineMode;
|
119
|
+
/**
|
120
|
+
*
|
121
|
+
* @type {UserMatchingModeEnum}
|
122
|
+
* @memberof KerberosSource
|
123
|
+
*/
|
124
|
+
userMatchingMode?: UserMatchingModeEnum;
|
125
|
+
/**
|
126
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
127
|
+
* @type {string}
|
128
|
+
* @memberof KerberosSource
|
129
|
+
*/
|
130
|
+
readonly managed: string | null;
|
131
|
+
/**
|
132
|
+
*
|
133
|
+
* @type {string}
|
134
|
+
* @memberof KerberosSource
|
135
|
+
*/
|
136
|
+
userPathTemplate?: string;
|
137
|
+
/**
|
138
|
+
*
|
139
|
+
* @type {string}
|
140
|
+
* @memberof KerberosSource
|
141
|
+
*/
|
142
|
+
readonly icon: string;
|
143
|
+
/**
|
144
|
+
*
|
145
|
+
* @type {GroupMatchingModeEnum}
|
146
|
+
* @memberof KerberosSource
|
147
|
+
*/
|
148
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
149
|
+
/**
|
150
|
+
* Kerberos realm
|
151
|
+
* @type {string}
|
152
|
+
* @memberof KerberosSource
|
153
|
+
*/
|
154
|
+
realm: string;
|
155
|
+
/**
|
156
|
+
* Custom krb5.conf to use. Uses the system one by default
|
157
|
+
* @type {string}
|
158
|
+
* @memberof KerberosSource
|
159
|
+
*/
|
160
|
+
krb5Conf?: string;
|
161
|
+
/**
|
162
|
+
* Sync users from Kerberos into authentik
|
163
|
+
* @type {boolean}
|
164
|
+
* @memberof KerberosSource
|
165
|
+
*/
|
166
|
+
syncUsers?: boolean;
|
167
|
+
/**
|
168
|
+
* When a user changes their password, sync it back to Kerberos
|
169
|
+
* @type {boolean}
|
170
|
+
* @memberof KerberosSource
|
171
|
+
*/
|
172
|
+
syncUsersPassword?: boolean;
|
173
|
+
/**
|
174
|
+
* Principal to authenticate to kadmin for sync.
|
175
|
+
* @type {string}
|
176
|
+
* @memberof KerberosSource
|
177
|
+
*/
|
178
|
+
syncPrincipal?: string;
|
179
|
+
/**
|
180
|
+
* Credentials cache to authenticate to kadmin for sync. Must be in the form TYPE:residual
|
181
|
+
* @type {string}
|
182
|
+
* @memberof KerberosSource
|
183
|
+
*/
|
184
|
+
syncCcache?: string;
|
185
|
+
/**
|
186
|
+
* Get cached source connectivity
|
187
|
+
* @type {{ [key: string]: string; }}
|
188
|
+
* @memberof KerberosSource
|
189
|
+
*/
|
190
|
+
readonly connectivity: { [key: string]: string; } | null;
|
191
|
+
/**
|
192
|
+
* Force the use of a specific server name for SPNEGO
|
193
|
+
* @type {string}
|
194
|
+
* @memberof KerberosSource
|
195
|
+
*/
|
196
|
+
spnegoServerName?: string;
|
197
|
+
/**
|
198
|
+
* Credential cache to use for SPNEGO in form type:residual
|
199
|
+
* @type {string}
|
200
|
+
* @memberof KerberosSource
|
201
|
+
*/
|
202
|
+
spnegoCcache?: string;
|
203
|
+
/**
|
204
|
+
* If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend
|
205
|
+
* @type {boolean}
|
206
|
+
* @memberof KerberosSource
|
207
|
+
*/
|
208
|
+
passwordLoginUpdateInternalPassword?: boolean;
|
209
|
+
}
|
210
|
+
|
211
|
+
/**
|
212
|
+
* Check if a given object implements the KerberosSource interface.
|
213
|
+
*/
|
214
|
+
export function instanceOfKerberosSource(value: object): boolean {
|
215
|
+
let isInstance = true;
|
216
|
+
isInstance = isInstance && "pk" in value;
|
217
|
+
isInstance = isInstance && "name" in value;
|
218
|
+
isInstance = isInstance && "slug" in value;
|
219
|
+
isInstance = isInstance && "component" in value;
|
220
|
+
isInstance = isInstance && "verboseName" in value;
|
221
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
222
|
+
isInstance = isInstance && "metaModelName" in value;
|
223
|
+
isInstance = isInstance && "managed" in value;
|
224
|
+
isInstance = isInstance && "icon" in value;
|
225
|
+
isInstance = isInstance && "realm" in value;
|
226
|
+
isInstance = isInstance && "connectivity" in value;
|
227
|
+
|
228
|
+
return isInstance;
|
229
|
+
}
|
230
|
+
|
231
|
+
export function KerberosSourceFromJSON(json: any): KerberosSource {
|
232
|
+
return KerberosSourceFromJSONTyped(json, false);
|
233
|
+
}
|
234
|
+
|
235
|
+
export function KerberosSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSource {
|
236
|
+
if ((json === undefined) || (json === null)) {
|
237
|
+
return json;
|
238
|
+
}
|
239
|
+
return {
|
240
|
+
|
241
|
+
'pk': json['pk'],
|
242
|
+
'name': json['name'],
|
243
|
+
'slug': json['slug'],
|
244
|
+
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
245
|
+
'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
|
246
|
+
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
247
|
+
'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
|
248
|
+
'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
|
249
|
+
'component': json['component'],
|
250
|
+
'verboseName': json['verbose_name'],
|
251
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
252
|
+
'metaModelName': json['meta_model_name'],
|
253
|
+
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
254
|
+
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
255
|
+
'managed': json['managed'],
|
256
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
257
|
+
'icon': json['icon'],
|
258
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
259
|
+
'realm': json['realm'],
|
260
|
+
'krb5Conf': !exists(json, 'krb5_conf') ? undefined : json['krb5_conf'],
|
261
|
+
'syncUsers': !exists(json, 'sync_users') ? undefined : json['sync_users'],
|
262
|
+
'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
|
263
|
+
'syncPrincipal': !exists(json, 'sync_principal') ? undefined : json['sync_principal'],
|
264
|
+
'syncCcache': !exists(json, 'sync_ccache') ? undefined : json['sync_ccache'],
|
265
|
+
'connectivity': json['connectivity'],
|
266
|
+
'spnegoServerName': !exists(json, 'spnego_server_name') ? undefined : json['spnego_server_name'],
|
267
|
+
'spnegoCcache': !exists(json, 'spnego_ccache') ? undefined : json['spnego_ccache'],
|
268
|
+
'passwordLoginUpdateInternalPassword': !exists(json, 'password_login_update_internal_password') ? undefined : json['password_login_update_internal_password'],
|
269
|
+
};
|
270
|
+
}
|
271
|
+
|
272
|
+
export function KerberosSourceToJSON(value?: KerberosSource | null): any {
|
273
|
+
if (value === undefined) {
|
274
|
+
return undefined;
|
275
|
+
}
|
276
|
+
if (value === null) {
|
277
|
+
return null;
|
278
|
+
}
|
279
|
+
return {
|
280
|
+
|
281
|
+
'name': value.name,
|
282
|
+
'slug': value.slug,
|
283
|
+
'enabled': value.enabled,
|
284
|
+
'authentication_flow': value.authenticationFlow,
|
285
|
+
'enrollment_flow': value.enrollmentFlow,
|
286
|
+
'user_property_mappings': value.userPropertyMappings,
|
287
|
+
'group_property_mappings': value.groupPropertyMappings,
|
288
|
+
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
289
|
+
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
290
|
+
'user_path_template': value.userPathTemplate,
|
291
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
292
|
+
'realm': value.realm,
|
293
|
+
'krb5_conf': value.krb5Conf,
|
294
|
+
'sync_users': value.syncUsers,
|
295
|
+
'sync_users_password': value.syncUsersPassword,
|
296
|
+
'sync_principal': value.syncPrincipal,
|
297
|
+
'sync_ccache': value.syncCcache,
|
298
|
+
'spnego_server_name': value.spnegoServerName,
|
299
|
+
'spnego_ccache': value.spnegoCcache,
|
300
|
+
'password_login_update_internal_password': value.passwordLoginUpdateInternalPassword,
|
301
|
+
};
|
302
|
+
}
|
303
|
+
|
@@ -0,0 +1,123 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.8.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
/**
|
17
|
+
* Kerberos PropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface KerberosSourcePropertyMapping
|
20
|
+
*/
|
21
|
+
export interface KerberosSourcePropertyMapping {
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
* @type {string}
|
25
|
+
* @memberof KerberosSourcePropertyMapping
|
26
|
+
*/
|
27
|
+
readonly pk: string;
|
28
|
+
/**
|
29
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
30
|
+
* @type {string}
|
31
|
+
* @memberof KerberosSourcePropertyMapping
|
32
|
+
*/
|
33
|
+
managed?: string | null;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof KerberosSourcePropertyMapping
|
38
|
+
*/
|
39
|
+
name: string;
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {string}
|
43
|
+
* @memberof KerberosSourcePropertyMapping
|
44
|
+
*/
|
45
|
+
expression: string;
|
46
|
+
/**
|
47
|
+
* Get object's component so that we know how to edit the object
|
48
|
+
* @type {string}
|
49
|
+
* @memberof KerberosSourcePropertyMapping
|
50
|
+
*/
|
51
|
+
readonly component: string;
|
52
|
+
/**
|
53
|
+
* Return object's verbose_name
|
54
|
+
* @type {string}
|
55
|
+
* @memberof KerberosSourcePropertyMapping
|
56
|
+
*/
|
57
|
+
readonly verboseName: string;
|
58
|
+
/**
|
59
|
+
* Return object's plural verbose_name
|
60
|
+
* @type {string}
|
61
|
+
* @memberof KerberosSourcePropertyMapping
|
62
|
+
*/
|
63
|
+
readonly verboseNamePlural: string;
|
64
|
+
/**
|
65
|
+
* Return internal model name
|
66
|
+
* @type {string}
|
67
|
+
* @memberof KerberosSourcePropertyMapping
|
68
|
+
*/
|
69
|
+
readonly metaModelName: string;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Check if a given object implements the KerberosSourcePropertyMapping interface.
|
74
|
+
*/
|
75
|
+
export function instanceOfKerberosSourcePropertyMapping(value: object): boolean {
|
76
|
+
let isInstance = true;
|
77
|
+
isInstance = isInstance && "pk" in value;
|
78
|
+
isInstance = isInstance && "name" in value;
|
79
|
+
isInstance = isInstance && "expression" in value;
|
80
|
+
isInstance = isInstance && "component" in value;
|
81
|
+
isInstance = isInstance && "verboseName" in value;
|
82
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
83
|
+
isInstance = isInstance && "metaModelName" in value;
|
84
|
+
|
85
|
+
return isInstance;
|
86
|
+
}
|
87
|
+
|
88
|
+
export function KerberosSourcePropertyMappingFromJSON(json: any): KerberosSourcePropertyMapping {
|
89
|
+
return KerberosSourcePropertyMappingFromJSONTyped(json, false);
|
90
|
+
}
|
91
|
+
|
92
|
+
export function KerberosSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSourcePropertyMapping {
|
93
|
+
if ((json === undefined) || (json === null)) {
|
94
|
+
return json;
|
95
|
+
}
|
96
|
+
return {
|
97
|
+
|
98
|
+
'pk': json['pk'],
|
99
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
100
|
+
'name': json['name'],
|
101
|
+
'expression': json['expression'],
|
102
|
+
'component': json['component'],
|
103
|
+
'verboseName': json['verbose_name'],
|
104
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
105
|
+
'metaModelName': json['meta_model_name'],
|
106
|
+
};
|
107
|
+
}
|
108
|
+
|
109
|
+
export function KerberosSourcePropertyMappingToJSON(value?: KerberosSourcePropertyMapping | null): any {
|
110
|
+
if (value === undefined) {
|
111
|
+
return undefined;
|
112
|
+
}
|
113
|
+
if (value === null) {
|
114
|
+
return null;
|
115
|
+
}
|
116
|
+
return {
|
117
|
+
|
118
|
+
'managed': value.managed,
|
119
|
+
'name': value.name,
|
120
|
+
'expression': value.expression,
|
121
|
+
};
|
122
|
+
}
|
123
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.8.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
/**
|
17
|
+
* Kerberos PropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface KerberosSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface KerberosSourcePropertyMappingRequest {
|
22
|
+
/**
|
23
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
24
|
+
* @type {string}
|
25
|
+
* @memberof KerberosSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof KerberosSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof KerberosSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the KerberosSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfKerberosSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
isInstance = isInstance && "name" in value;
|
48
|
+
isInstance = isInstance && "expression" in value;
|
49
|
+
|
50
|
+
return isInstance;
|
51
|
+
}
|
52
|
+
|
53
|
+
export function KerberosSourcePropertyMappingRequestFromJSON(json: any): KerberosSourcePropertyMappingRequest {
|
54
|
+
return KerberosSourcePropertyMappingRequestFromJSONTyped(json, false);
|
55
|
+
}
|
56
|
+
|
57
|
+
export function KerberosSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSourcePropertyMappingRequest {
|
58
|
+
if ((json === undefined) || (json === null)) {
|
59
|
+
return json;
|
60
|
+
}
|
61
|
+
return {
|
62
|
+
|
63
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
64
|
+
'name': json['name'],
|
65
|
+
'expression': json['expression'],
|
66
|
+
};
|
67
|
+
}
|
68
|
+
|
69
|
+
export function KerberosSourcePropertyMappingRequestToJSON(value?: KerberosSourcePropertyMappingRequest | null): any {
|
70
|
+
if (value === undefined) {
|
71
|
+
return undefined;
|
72
|
+
}
|
73
|
+
if (value === null) {
|
74
|
+
return null;
|
75
|
+
}
|
76
|
+
return {
|
77
|
+
|
78
|
+
'managed': value.managed,
|
79
|
+
'name': value.name,
|
80
|
+
'expression': value.expression,
|
81
|
+
};
|
82
|
+
}
|
83
|
+
|