@goauthentik/api 2024.8.3-1729630021 → 2024.8.3-1729753499
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +15 -0
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/SourcesApi.d.ts +257 -1
- package/dist/apis/SourcesApi.js +841 -28
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/SourcesApi.d.ts +257 -1
- package/dist/esm/apis/SourcesApi.js +842 -29
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/BackendsEnum.d.ts +1 -0
- package/dist/esm/models/BackendsEnum.js +1 -0
- package/dist/esm/models/DeviceChallenge.d.ts +6 -0
- package/dist/esm/models/DeviceChallenge.js +3 -0
- package/dist/esm/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/esm/models/DeviceChallengeRequest.js +3 -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 +4 -0
- package/dist/esm/models/ModelEnum.js +4 -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/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 +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/BackendsEnum.d.ts +1 -0
- package/dist/models/BackendsEnum.js +1 -0
- package/dist/models/DeviceChallenge.d.ts +6 -0
- package/dist/models/DeviceChallenge.js +3 -0
- package/dist/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/models/DeviceChallengeRequest.js +3 -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 +4 -0
- package/dist/models/ModelEnum.js +4 -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/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 +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +350 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +1200 -153
- package/src/models/AppEnum.ts +1 -0
- package/src/models/BackendsEnum.ts +1 -0
- package/src/models/DeviceChallenge.ts +9 -0
- package/src/models/DeviceChallengeRequest.ts +9 -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 +4 -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/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 +15 -0
package/src/models/AppEnum.ts
CHANGED
@@ -40,6 +40,7 @@ export const AppEnum = {
|
|
40
40
|
ProvidersScim: 'authentik.providers.scim',
|
41
41
|
Rbac: 'authentik.rbac',
|
42
42
|
Recovery: 'authentik.recovery',
|
43
|
+
SourcesKerberos: 'authentik.sources.kerberos',
|
43
44
|
SourcesLdap: 'authentik.sources.ldap',
|
44
45
|
SourcesOauth: 'authentik.sources.oauth',
|
45
46
|
SourcesPlex: 'authentik.sources.plex',
|
@@ -21,6 +21,7 @@ export const BackendsEnum = {
|
|
21
21
|
CoreAuthInbuiltBackend: 'authentik.core.auth.InbuiltBackend',
|
22
22
|
CoreAuthTokenBackend: 'authentik.core.auth.TokenBackend',
|
23
23
|
SourcesLdapAuthLdapBackend: 'authentik.sources.ldap.auth.LDAPBackend',
|
24
|
+
SourcesKerberosAuthKerberosBackend: 'authentik.sources.kerberos.auth.KerberosBackend',
|
24
25
|
UnknownDefaultOpenApi: '11184809'
|
25
26
|
} as const;
|
26
27
|
export type BackendsEnum = typeof BackendsEnum[keyof typeof BackendsEnum];
|
@@ -37,6 +37,12 @@ export interface DeviceChallenge {
|
|
37
37
|
* @memberof DeviceChallenge
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallenge
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallenge(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeToJSON(value?: DeviceChallenge | null): any {
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|
@@ -37,6 +37,12 @@ export interface DeviceChallengeRequest {
|
|
37
37
|
* @memberof DeviceChallengeRequest
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallengeRequest
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallengeRequest(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeRequestToJSON(value?: DeviceChallengeRequest | nu
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|
@@ -0,0 +1,104 @@
|
|
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 { Source } from './Source';
|
17
|
+
import {
|
18
|
+
SourceFromJSON,
|
19
|
+
SourceFromJSONTyped,
|
20
|
+
SourceToJSON,
|
21
|
+
} from './Source';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* OAuth Group-Source connection Serializer
|
25
|
+
* @export
|
26
|
+
* @interface GroupKerberosSourceConnection
|
27
|
+
*/
|
28
|
+
export interface GroupKerberosSourceConnection {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {number}
|
32
|
+
* @memberof GroupKerberosSourceConnection
|
33
|
+
*/
|
34
|
+
readonly pk: number;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {string}
|
38
|
+
* @memberof GroupKerberosSourceConnection
|
39
|
+
*/
|
40
|
+
readonly group: string;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Source}
|
44
|
+
* @memberof GroupKerberosSourceConnection
|
45
|
+
*/
|
46
|
+
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {string}
|
50
|
+
* @memberof GroupKerberosSourceConnection
|
51
|
+
*/
|
52
|
+
readonly identifier: string;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {Date}
|
56
|
+
* @memberof GroupKerberosSourceConnection
|
57
|
+
*/
|
58
|
+
readonly created: Date;
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Check if a given object implements the GroupKerberosSourceConnection interface.
|
63
|
+
*/
|
64
|
+
export function instanceOfGroupKerberosSourceConnection(value: object): boolean {
|
65
|
+
let isInstance = true;
|
66
|
+
isInstance = isInstance && "pk" in value;
|
67
|
+
isInstance = isInstance && "group" in value;
|
68
|
+
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "identifier" in value;
|
70
|
+
isInstance = isInstance && "created" in value;
|
71
|
+
|
72
|
+
return isInstance;
|
73
|
+
}
|
74
|
+
|
75
|
+
export function GroupKerberosSourceConnectionFromJSON(json: any): GroupKerberosSourceConnection {
|
76
|
+
return GroupKerberosSourceConnectionFromJSONTyped(json, false);
|
77
|
+
}
|
78
|
+
|
79
|
+
export function GroupKerberosSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupKerberosSourceConnection {
|
80
|
+
if ((json === undefined) || (json === null)) {
|
81
|
+
return json;
|
82
|
+
}
|
83
|
+
return {
|
84
|
+
|
85
|
+
'pk': json['pk'],
|
86
|
+
'group': json['group'],
|
87
|
+
'source': SourceFromJSON(json['source']),
|
88
|
+
'identifier': json['identifier'],
|
89
|
+
'created': (new Date(json['created'])),
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
export function GroupKerberosSourceConnectionToJSON(value?: GroupKerberosSourceConnection | null): any {
|
94
|
+
if (value === undefined) {
|
95
|
+
return undefined;
|
96
|
+
}
|
97
|
+
if (value === null) {
|
98
|
+
return null;
|
99
|
+
}
|
100
|
+
return {
|
101
|
+
|
102
|
+
};
|
103
|
+
}
|
104
|
+
|
@@ -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
|
+
|