@goauthentik/api 2023.5.3-1685646044 → 2023.5.3-1686577333
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.
- package/dist/apis/SourcesApi.d.ts +2 -0
- package/dist/apis/SourcesApi.js +6 -0
- package/dist/esm/apis/SourcesApi.d.ts +2 -0
- package/dist/esm/apis/SourcesApi.js +6 -0
- package/dist/esm/models/LDAPSource.d.ts +12 -0
- package/dist/esm/models/LDAPSource.js +4 -0
- package/dist/esm/models/LDAPSourceRequest.d.ts +12 -0
- package/dist/esm/models/LDAPSourceRequest.js +4 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +12 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.js +4 -0
- package/dist/models/LDAPSource.d.ts +12 -0
- package/dist/models/LDAPSource.js +4 -0
- package/dist/models/LDAPSourceRequest.d.ts +12 -0
- package/dist/models/LDAPSourceRequest.js +4 -0
- package/dist/models/PatchedLDAPSourceRequest.d.ts +12 -0
- package/dist/models/PatchedLDAPSourceRequest.js +4 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +10 -0
- package/src/models/LDAPSource.ts +16 -0
- package/src/models/LDAPSourceRequest.ts +16 -0
- package/src/models/PatchedLDAPSourceRequest.ts +16 -0
|
@@ -52,6 +52,7 @@ export interface SourcesLdapListRequest {
|
|
|
52
52
|
additionalUserDn?: string;
|
|
53
53
|
baseDn?: string;
|
|
54
54
|
bindCn?: string;
|
|
55
|
+
clientCertificate?: string;
|
|
55
56
|
enabled?: boolean;
|
|
56
57
|
groupMembershipField?: string;
|
|
57
58
|
groupObjectFilter?: string;
|
|
@@ -66,6 +67,7 @@ export interface SourcesLdapListRequest {
|
|
|
66
67
|
search?: string;
|
|
67
68
|
serverUri?: string;
|
|
68
69
|
slug?: string;
|
|
70
|
+
sni?: boolean;
|
|
69
71
|
startTls?: boolean;
|
|
70
72
|
syncGroups?: boolean;
|
|
71
73
|
syncParentGroup?: string;
|
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -425,6 +425,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
425
425
|
if (requestParameters.bindCn !== undefined) {
|
|
426
426
|
queryParameters['bind_cn'] = requestParameters.bindCn;
|
|
427
427
|
}
|
|
428
|
+
if (requestParameters.clientCertificate !== undefined) {
|
|
429
|
+
queryParameters['client_certificate'] = requestParameters.clientCertificate;
|
|
430
|
+
}
|
|
428
431
|
if (requestParameters.enabled !== undefined) {
|
|
429
432
|
queryParameters['enabled'] = requestParameters.enabled;
|
|
430
433
|
}
|
|
@@ -467,6 +470,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
467
470
|
if (requestParameters.slug !== undefined) {
|
|
468
471
|
queryParameters['slug'] = requestParameters.slug;
|
|
469
472
|
}
|
|
473
|
+
if (requestParameters.sni !== undefined) {
|
|
474
|
+
queryParameters['sni'] = requestParameters.sni;
|
|
475
|
+
}
|
|
470
476
|
if (requestParameters.startTls !== undefined) {
|
|
471
477
|
queryParameters['start_tls'] = requestParameters.startTls;
|
|
472
478
|
}
|
|
@@ -52,6 +52,7 @@ export interface SourcesLdapListRequest {
|
|
|
52
52
|
additionalUserDn?: string;
|
|
53
53
|
baseDn?: string;
|
|
54
54
|
bindCn?: string;
|
|
55
|
+
clientCertificate?: string;
|
|
55
56
|
enabled?: boolean;
|
|
56
57
|
groupMembershipField?: string;
|
|
57
58
|
groupObjectFilter?: string;
|
|
@@ -66,6 +67,7 @@ export interface SourcesLdapListRequest {
|
|
|
66
67
|
search?: string;
|
|
67
68
|
serverUri?: string;
|
|
68
69
|
slug?: string;
|
|
70
|
+
sni?: boolean;
|
|
69
71
|
startTls?: boolean;
|
|
70
72
|
syncGroups?: boolean;
|
|
71
73
|
syncParentGroup?: string;
|
|
@@ -422,6 +422,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
422
422
|
if (requestParameters.bindCn !== undefined) {
|
|
423
423
|
queryParameters['bind_cn'] = requestParameters.bindCn;
|
|
424
424
|
}
|
|
425
|
+
if (requestParameters.clientCertificate !== undefined) {
|
|
426
|
+
queryParameters['client_certificate'] = requestParameters.clientCertificate;
|
|
427
|
+
}
|
|
425
428
|
if (requestParameters.enabled !== undefined) {
|
|
426
429
|
queryParameters['enabled'] = requestParameters.enabled;
|
|
427
430
|
}
|
|
@@ -464,6 +467,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
464
467
|
if (requestParameters.slug !== undefined) {
|
|
465
468
|
queryParameters['slug'] = requestParameters.slug;
|
|
466
469
|
}
|
|
470
|
+
if (requestParameters.sni !== undefined) {
|
|
471
|
+
queryParameters['sni'] = requestParameters.sni;
|
|
472
|
+
}
|
|
467
473
|
if (requestParameters.startTls !== undefined) {
|
|
468
474
|
queryParameters['start_tls'] = requestParameters.startTls;
|
|
469
475
|
}
|
|
@@ -120,6 +120,12 @@ export interface LDAPSource {
|
|
|
120
120
|
* @memberof LDAPSource
|
|
121
121
|
*/
|
|
122
122
|
peerCertificate?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof LDAPSource
|
|
127
|
+
*/
|
|
128
|
+
clientCertificate?: string | null;
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
* @type {string}
|
|
@@ -132,6 +138,12 @@ export interface LDAPSource {
|
|
|
132
138
|
* @memberof LDAPSource
|
|
133
139
|
*/
|
|
134
140
|
startTls?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {boolean}
|
|
144
|
+
* @memberof LDAPSource
|
|
145
|
+
*/
|
|
146
|
+
sni?: boolean;
|
|
135
147
|
/**
|
|
136
148
|
*
|
|
137
149
|
* @type {string}
|
|
@@ -57,8 +57,10 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'icon': json['icon'],
|
|
58
58
|
'serverUri': json['server_uri'],
|
|
59
59
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
60
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
60
61
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
61
62
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
63
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
62
64
|
'baseDn': json['base_dn'],
|
|
63
65
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
64
66
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -92,8 +94,10 @@ export function LDAPSourceToJSON(value) {
|
|
|
92
94
|
'user_path_template': value.userPathTemplate,
|
|
93
95
|
'server_uri': value.serverUri,
|
|
94
96
|
'peer_certificate': value.peerCertificate,
|
|
97
|
+
'client_certificate': value.clientCertificate,
|
|
95
98
|
'bind_cn': value.bindCn,
|
|
96
99
|
'start_tls': value.startTls,
|
|
100
|
+
'sni': value.sni,
|
|
97
101
|
'base_dn': value.baseDn,
|
|
98
102
|
'additional_user_dn': value.additionalUserDn,
|
|
99
103
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -77,6 +77,12 @@ export interface LDAPSourceRequest {
|
|
|
77
77
|
* @memberof LDAPSourceRequest
|
|
78
78
|
*/
|
|
79
79
|
peerCertificate?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof LDAPSourceRequest
|
|
84
|
+
*/
|
|
85
|
+
clientCertificate?: string | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {string}
|
|
@@ -95,6 +101,12 @@ export interface LDAPSourceRequest {
|
|
|
95
101
|
* @memberof LDAPSourceRequest
|
|
96
102
|
*/
|
|
97
103
|
startTls?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof LDAPSourceRequest
|
|
108
|
+
*/
|
|
109
|
+
sni?: boolean;
|
|
98
110
|
/**
|
|
99
111
|
*
|
|
100
112
|
* @type {string}
|
|
@@ -43,9 +43,11 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
44
44
|
'serverUri': json['server_uri'],
|
|
45
45
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
46
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
46
47
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
47
48
|
'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
|
|
48
49
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
50
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
49
51
|
'baseDn': json['base_dn'],
|
|
50
52
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
51
53
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -79,9 +81,11 @@ export function LDAPSourceRequestToJSON(value) {
|
|
|
79
81
|
'user_path_template': value.userPathTemplate,
|
|
80
82
|
'server_uri': value.serverUri,
|
|
81
83
|
'peer_certificate': value.peerCertificate,
|
|
84
|
+
'client_certificate': value.clientCertificate,
|
|
82
85
|
'bind_cn': value.bindCn,
|
|
83
86
|
'bind_password': value.bindPassword,
|
|
84
87
|
'start_tls': value.startTls,
|
|
88
|
+
'sni': value.sni,
|
|
85
89
|
'base_dn': value.baseDn,
|
|
86
90
|
'additional_user_dn': value.additionalUserDn,
|
|
87
91
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -77,6 +77,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
77
77
|
* @memberof PatchedLDAPSourceRequest
|
|
78
78
|
*/
|
|
79
79
|
peerCertificate?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof PatchedLDAPSourceRequest
|
|
84
|
+
*/
|
|
85
|
+
clientCertificate?: string | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {string}
|
|
@@ -95,6 +101,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
95
101
|
* @memberof PatchedLDAPSourceRequest
|
|
96
102
|
*/
|
|
97
103
|
startTls?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof PatchedLDAPSourceRequest
|
|
108
|
+
*/
|
|
109
|
+
sni?: boolean;
|
|
98
110
|
/**
|
|
99
111
|
*
|
|
100
112
|
* @type {string}
|
|
@@ -39,9 +39,11 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
39
39
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
40
40
|
'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
|
|
41
41
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
42
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
42
43
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
43
44
|
'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
|
|
44
45
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
46
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
45
47
|
'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],
|
|
46
48
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
47
49
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -75,9 +77,11 @@ export function PatchedLDAPSourceRequestToJSON(value) {
|
|
|
75
77
|
'user_path_template': value.userPathTemplate,
|
|
76
78
|
'server_uri': value.serverUri,
|
|
77
79
|
'peer_certificate': value.peerCertificate,
|
|
80
|
+
'client_certificate': value.clientCertificate,
|
|
78
81
|
'bind_cn': value.bindCn,
|
|
79
82
|
'bind_password': value.bindPassword,
|
|
80
83
|
'start_tls': value.startTls,
|
|
84
|
+
'sni': value.sni,
|
|
81
85
|
'base_dn': value.baseDn,
|
|
82
86
|
'additional_user_dn': value.additionalUserDn,
|
|
83
87
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -120,6 +120,12 @@ export interface LDAPSource {
|
|
|
120
120
|
* @memberof LDAPSource
|
|
121
121
|
*/
|
|
122
122
|
peerCertificate?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof LDAPSource
|
|
127
|
+
*/
|
|
128
|
+
clientCertificate?: string | null;
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
* @type {string}
|
|
@@ -132,6 +138,12 @@ export interface LDAPSource {
|
|
|
132
138
|
* @memberof LDAPSource
|
|
133
139
|
*/
|
|
134
140
|
startTls?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {boolean}
|
|
144
|
+
* @memberof LDAPSource
|
|
145
|
+
*/
|
|
146
|
+
sni?: boolean;
|
|
135
147
|
/**
|
|
136
148
|
*
|
|
137
149
|
* @type {string}
|
|
@@ -62,8 +62,10 @@ function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'icon': json['icon'],
|
|
63
63
|
'serverUri': json['server_uri'],
|
|
64
64
|
'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
65
|
+
'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
65
66
|
'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
66
67
|
'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
|
|
68
|
+
'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
|
|
67
69
|
'baseDn': json['base_dn'],
|
|
68
70
|
'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
69
71
|
'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -98,8 +100,10 @@ function LDAPSourceToJSON(value) {
|
|
|
98
100
|
'user_path_template': value.userPathTemplate,
|
|
99
101
|
'server_uri': value.serverUri,
|
|
100
102
|
'peer_certificate': value.peerCertificate,
|
|
103
|
+
'client_certificate': value.clientCertificate,
|
|
101
104
|
'bind_cn': value.bindCn,
|
|
102
105
|
'start_tls': value.startTls,
|
|
106
|
+
'sni': value.sni,
|
|
103
107
|
'base_dn': value.baseDn,
|
|
104
108
|
'additional_user_dn': value.additionalUserDn,
|
|
105
109
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -77,6 +77,12 @@ export interface LDAPSourceRequest {
|
|
|
77
77
|
* @memberof LDAPSourceRequest
|
|
78
78
|
*/
|
|
79
79
|
peerCertificate?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof LDAPSourceRequest
|
|
84
|
+
*/
|
|
85
|
+
clientCertificate?: string | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {string}
|
|
@@ -95,6 +101,12 @@ export interface LDAPSourceRequest {
|
|
|
95
101
|
* @memberof LDAPSourceRequest
|
|
96
102
|
*/
|
|
97
103
|
startTls?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof LDAPSourceRequest
|
|
108
|
+
*/
|
|
109
|
+
sni?: boolean;
|
|
98
110
|
/**
|
|
99
111
|
*
|
|
100
112
|
* @type {string}
|
|
@@ -48,9 +48,11 @@ function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
49
49
|
'serverUri': json['server_uri'],
|
|
50
50
|
'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
51
|
+
'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
51
52
|
'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
52
53
|
'bindPassword': !(0, runtime_1.exists)(json, 'bind_password') ? undefined : json['bind_password'],
|
|
53
54
|
'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
|
|
55
|
+
'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
|
|
54
56
|
'baseDn': json['base_dn'],
|
|
55
57
|
'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
56
58
|
'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -85,9 +87,11 @@ function LDAPSourceRequestToJSON(value) {
|
|
|
85
87
|
'user_path_template': value.userPathTemplate,
|
|
86
88
|
'server_uri': value.serverUri,
|
|
87
89
|
'peer_certificate': value.peerCertificate,
|
|
90
|
+
'client_certificate': value.clientCertificate,
|
|
88
91
|
'bind_cn': value.bindCn,
|
|
89
92
|
'bind_password': value.bindPassword,
|
|
90
93
|
'start_tls': value.startTls,
|
|
94
|
+
'sni': value.sni,
|
|
91
95
|
'base_dn': value.baseDn,
|
|
92
96
|
'additional_user_dn': value.additionalUserDn,
|
|
93
97
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -77,6 +77,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
77
77
|
* @memberof PatchedLDAPSourceRequest
|
|
78
78
|
*/
|
|
79
79
|
peerCertificate?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof PatchedLDAPSourceRequest
|
|
84
|
+
*/
|
|
85
|
+
clientCertificate?: string | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {string}
|
|
@@ -95,6 +101,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
95
101
|
* @memberof PatchedLDAPSourceRequest
|
|
96
102
|
*/
|
|
97
103
|
startTls?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof PatchedLDAPSourceRequest
|
|
108
|
+
*/
|
|
109
|
+
sni?: boolean;
|
|
98
110
|
/**
|
|
99
111
|
*
|
|
100
112
|
* @type {string}
|
|
@@ -44,9 +44,11 @@ function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
45
45
|
'serverUri': !(0, runtime_1.exists)(json, 'server_uri') ? undefined : json['server_uri'],
|
|
46
46
|
'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
47
|
+
'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
47
48
|
'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
48
49
|
'bindPassword': !(0, runtime_1.exists)(json, 'bind_password') ? undefined : json['bind_password'],
|
|
49
50
|
'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
|
|
51
|
+
'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
|
|
50
52
|
'baseDn': !(0, runtime_1.exists)(json, 'base_dn') ? undefined : json['base_dn'],
|
|
51
53
|
'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
52
54
|
'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -81,9 +83,11 @@ function PatchedLDAPSourceRequestToJSON(value) {
|
|
|
81
83
|
'user_path_template': value.userPathTemplate,
|
|
82
84
|
'server_uri': value.serverUri,
|
|
83
85
|
'peer_certificate': value.peerCertificate,
|
|
86
|
+
'client_certificate': value.clientCertificate,
|
|
84
87
|
'bind_cn': value.bindCn,
|
|
85
88
|
'bind_password': value.bindPassword,
|
|
86
89
|
'start_tls': value.startTls,
|
|
90
|
+
'sni': value.sni,
|
|
87
91
|
'base_dn': value.baseDn,
|
|
88
92
|
'additional_user_dn': value.additionalUserDn,
|
|
89
93
|
'additional_group_dn': value.additionalGroupDn,
|
package/package.json
CHANGED
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -201,6 +201,7 @@ export interface SourcesLdapListRequest {
|
|
|
201
201
|
additionalUserDn?: string;
|
|
202
202
|
baseDn?: string;
|
|
203
203
|
bindCn?: string;
|
|
204
|
+
clientCertificate?: string;
|
|
204
205
|
enabled?: boolean;
|
|
205
206
|
groupMembershipField?: string;
|
|
206
207
|
groupObjectFilter?: string;
|
|
@@ -215,6 +216,7 @@ export interface SourcesLdapListRequest {
|
|
|
215
216
|
search?: string;
|
|
216
217
|
serverUri?: string;
|
|
217
218
|
slug?: string;
|
|
219
|
+
sni?: boolean;
|
|
218
220
|
startTls?: boolean;
|
|
219
221
|
syncGroups?: boolean;
|
|
220
222
|
syncParentGroup?: string;
|
|
@@ -984,6 +986,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
984
986
|
queryParameters['bind_cn'] = requestParameters.bindCn;
|
|
985
987
|
}
|
|
986
988
|
|
|
989
|
+
if (requestParameters.clientCertificate !== undefined) {
|
|
990
|
+
queryParameters['client_certificate'] = requestParameters.clientCertificate;
|
|
991
|
+
}
|
|
992
|
+
|
|
987
993
|
if (requestParameters.enabled !== undefined) {
|
|
988
994
|
queryParameters['enabled'] = requestParameters.enabled;
|
|
989
995
|
}
|
|
@@ -1040,6 +1046,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1040
1046
|
queryParameters['slug'] = requestParameters.slug;
|
|
1041
1047
|
}
|
|
1042
1048
|
|
|
1049
|
+
if (requestParameters.sni !== undefined) {
|
|
1050
|
+
queryParameters['sni'] = requestParameters.sni;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1043
1053
|
if (requestParameters.startTls !== undefined) {
|
|
1044
1054
|
queryParameters['start_tls'] = requestParameters.startTls;
|
|
1045
1055
|
}
|
package/src/models/LDAPSource.ts
CHANGED
|
@@ -135,6 +135,12 @@ export interface LDAPSource {
|
|
|
135
135
|
* @memberof LDAPSource
|
|
136
136
|
*/
|
|
137
137
|
peerCertificate?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof LDAPSource
|
|
142
|
+
*/
|
|
143
|
+
clientCertificate?: string | null;
|
|
138
144
|
/**
|
|
139
145
|
*
|
|
140
146
|
* @type {string}
|
|
@@ -147,6 +153,12 @@ export interface LDAPSource {
|
|
|
147
153
|
* @memberof LDAPSource
|
|
148
154
|
*/
|
|
149
155
|
startTls?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {boolean}
|
|
159
|
+
* @memberof LDAPSource
|
|
160
|
+
*/
|
|
161
|
+
sni?: boolean;
|
|
150
162
|
/**
|
|
151
163
|
*
|
|
152
164
|
* @type {string}
|
|
@@ -274,8 +286,10 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
274
286
|
'icon': json['icon'],
|
|
275
287
|
'serverUri': json['server_uri'],
|
|
276
288
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
289
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
277
290
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
278
291
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
292
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
279
293
|
'baseDn': json['base_dn'],
|
|
280
294
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
281
295
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -311,8 +325,10 @@ export function LDAPSourceToJSON(value?: LDAPSource | null): any {
|
|
|
311
325
|
'user_path_template': value.userPathTemplate,
|
|
312
326
|
'server_uri': value.serverUri,
|
|
313
327
|
'peer_certificate': value.peerCertificate,
|
|
328
|
+
'client_certificate': value.clientCertificate,
|
|
314
329
|
'bind_cn': value.bindCn,
|
|
315
330
|
'start_tls': value.startTls,
|
|
331
|
+
'sni': value.sni,
|
|
316
332
|
'base_dn': value.baseDn,
|
|
317
333
|
'additional_user_dn': value.additionalUserDn,
|
|
318
334
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -92,6 +92,12 @@ export interface LDAPSourceRequest {
|
|
|
92
92
|
* @memberof LDAPSourceRequest
|
|
93
93
|
*/
|
|
94
94
|
peerCertificate?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof LDAPSourceRequest
|
|
99
|
+
*/
|
|
100
|
+
clientCertificate?: string | null;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {string}
|
|
@@ -110,6 +116,12 @@ export interface LDAPSourceRequest {
|
|
|
110
116
|
* @memberof LDAPSourceRequest
|
|
111
117
|
*/
|
|
112
118
|
startTls?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof LDAPSourceRequest
|
|
123
|
+
*/
|
|
124
|
+
sni?: boolean;
|
|
113
125
|
/**
|
|
114
126
|
*
|
|
115
127
|
* @type {string}
|
|
@@ -223,9 +235,11 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
223
235
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
224
236
|
'serverUri': json['server_uri'],
|
|
225
237
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
238
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
226
239
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
227
240
|
'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
|
|
228
241
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
242
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
229
243
|
'baseDn': json['base_dn'],
|
|
230
244
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
231
245
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -261,9 +275,11 @@ export function LDAPSourceRequestToJSON(value?: LDAPSourceRequest | null): any {
|
|
|
261
275
|
'user_path_template': value.userPathTemplate,
|
|
262
276
|
'server_uri': value.serverUri,
|
|
263
277
|
'peer_certificate': value.peerCertificate,
|
|
278
|
+
'client_certificate': value.clientCertificate,
|
|
264
279
|
'bind_cn': value.bindCn,
|
|
265
280
|
'bind_password': value.bindPassword,
|
|
266
281
|
'start_tls': value.startTls,
|
|
282
|
+
'sni': value.sni,
|
|
267
283
|
'base_dn': value.baseDn,
|
|
268
284
|
'additional_user_dn': value.additionalUserDn,
|
|
269
285
|
'additional_group_dn': value.additionalGroupDn,
|
|
@@ -92,6 +92,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
92
92
|
* @memberof PatchedLDAPSourceRequest
|
|
93
93
|
*/
|
|
94
94
|
peerCertificate?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Client certificate to authenticate against the LDAP Server's Certificate.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof PatchedLDAPSourceRequest
|
|
99
|
+
*/
|
|
100
|
+
clientCertificate?: string | null;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {string}
|
|
@@ -110,6 +116,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
110
116
|
* @memberof PatchedLDAPSourceRequest
|
|
111
117
|
*/
|
|
112
118
|
startTls?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof PatchedLDAPSourceRequest
|
|
123
|
+
*/
|
|
124
|
+
sni?: boolean;
|
|
113
125
|
/**
|
|
114
126
|
*
|
|
115
127
|
* @type {string}
|
|
@@ -219,9 +231,11 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
219
231
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
220
232
|
'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
|
|
221
233
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
234
|
+
'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
|
|
222
235
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
223
236
|
'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
|
|
224
237
|
'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
|
|
238
|
+
'sni': !exists(json, 'sni') ? undefined : json['sni'],
|
|
225
239
|
'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],
|
|
226
240
|
'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
|
|
227
241
|
'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
|
|
@@ -257,9 +271,11 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
|
|
|
257
271
|
'user_path_template': value.userPathTemplate,
|
|
258
272
|
'server_uri': value.serverUri,
|
|
259
273
|
'peer_certificate': value.peerCertificate,
|
|
274
|
+
'client_certificate': value.clientCertificate,
|
|
260
275
|
'bind_cn': value.bindCn,
|
|
261
276
|
'bind_password': value.bindPassword,
|
|
262
277
|
'start_tls': value.startTls,
|
|
278
|
+
'sni': value.sni,
|
|
263
279
|
'base_dn': value.baseDn,
|
|
264
280
|
'additional_user_dn': value.additionalUserDn,
|
|
265
281
|
'additional_group_dn': value.additionalGroupDn,
|