@goauthentik/api 2023.2.0-1676381184 → 2023.2.0-1676387781
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/.openapi-generator/FILES +1 -0
- package/dist/apis/SourcesApi.d.ts +12 -1
- package/dist/apis/SourcesApi.js +31 -0
- package/dist/esm/apis/SourcesApi.d.ts +12 -1
- package/dist/esm/apis/SourcesApi.js +32 -1
- package/dist/esm/models/LDAPDebug.d.ts +45 -0
- package/dist/esm/models/LDAPDebug.js +35 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LDAPDebug.d.ts +45 -0
- package/dist/models/LDAPDebug.js +41 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +41 -0
- package/src/models/LDAPDebug.ts +69 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -169,6 +169,7 @@ src/models/IssuerModeEnum.ts
|
|
|
169
169
|
src/models/KubernetesServiceConnection.ts
|
|
170
170
|
src/models/KubernetesServiceConnectionRequest.ts
|
|
171
171
|
src/models/LDAPAPIAccessMode.ts
|
|
172
|
+
src/models/LDAPDebug.ts
|
|
172
173
|
src/models/LDAPOutpostConfig.ts
|
|
173
174
|
src/models/LDAPPropertyMapping.ts
|
|
174
175
|
src/models/LDAPPropertyMappingRequest.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { FilePathRequest, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
13
|
+
import { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
14
14
|
export interface SourcesAllDestroyRequest {
|
|
15
15
|
slug: string;
|
|
16
16
|
}
|
|
@@ -41,6 +41,9 @@ export interface SourcesAllUsedByListRequest {
|
|
|
41
41
|
export interface SourcesLdapCreateRequest {
|
|
42
42
|
lDAPSourceRequest: LDAPSourceRequest;
|
|
43
43
|
}
|
|
44
|
+
export interface SourcesLdapDebugRetrieveRequest {
|
|
45
|
+
slug: string;
|
|
46
|
+
}
|
|
44
47
|
export interface SourcesLdapDestroyRequest {
|
|
45
48
|
slug: string;
|
|
46
49
|
}
|
|
@@ -400,6 +403,14 @@ export declare class SourcesApi extends runtime.BaseAPI {
|
|
|
400
403
|
* LDAP Source Viewset
|
|
401
404
|
*/
|
|
402
405
|
sourcesLdapCreate(requestParameters: SourcesLdapCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LDAPSource>;
|
|
406
|
+
/**
|
|
407
|
+
* Get raw LDAP data to debug
|
|
408
|
+
*/
|
|
409
|
+
sourcesLdapDebugRetrieveRaw(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LDAPDebug>>;
|
|
410
|
+
/**
|
|
411
|
+
* Get raw LDAP data to debug
|
|
412
|
+
*/
|
|
413
|
+
sourcesLdapDebugRetrieve(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LDAPDebug>;
|
|
403
414
|
/**
|
|
404
415
|
* LDAP Source Viewset
|
|
405
416
|
*/
|
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -346,6 +346,37 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
346
346
|
return yield response.value();
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* Get raw LDAP data to debug
|
|
351
|
+
*/
|
|
352
|
+
sourcesLdapDebugRetrieveRaw(requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
355
|
+
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling sourcesLdapDebugRetrieve.');
|
|
356
|
+
}
|
|
357
|
+
const queryParameters = {};
|
|
358
|
+
const headerParameters = {};
|
|
359
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
360
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
361
|
+
}
|
|
362
|
+
const response = yield this.request({
|
|
363
|
+
path: `/sources/ldap/{slug}/debug/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
364
|
+
method: 'GET',
|
|
365
|
+
headers: headerParameters,
|
|
366
|
+
query: queryParameters,
|
|
367
|
+
}, initOverrides);
|
|
368
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPDebugFromJSON)(jsonValue));
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Get raw LDAP data to debug
|
|
373
|
+
*/
|
|
374
|
+
sourcesLdapDebugRetrieve(requestParameters, initOverrides) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
const response = yield this.sourcesLdapDebugRetrieveRaw(requestParameters, initOverrides);
|
|
377
|
+
return yield response.value();
|
|
378
|
+
});
|
|
379
|
+
}
|
|
349
380
|
/**
|
|
350
381
|
* LDAP Source Viewset
|
|
351
382
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { FilePathRequest, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
13
|
+
import { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
14
14
|
export interface SourcesAllDestroyRequest {
|
|
15
15
|
slug: string;
|
|
16
16
|
}
|
|
@@ -41,6 +41,9 @@ export interface SourcesAllUsedByListRequest {
|
|
|
41
41
|
export interface SourcesLdapCreateRequest {
|
|
42
42
|
lDAPSourceRequest: LDAPSourceRequest;
|
|
43
43
|
}
|
|
44
|
+
export interface SourcesLdapDebugRetrieveRequest {
|
|
45
|
+
slug: string;
|
|
46
|
+
}
|
|
44
47
|
export interface SourcesLdapDestroyRequest {
|
|
45
48
|
slug: string;
|
|
46
49
|
}
|
|
@@ -400,6 +403,14 @@ export declare class SourcesApi extends runtime.BaseAPI {
|
|
|
400
403
|
* LDAP Source Viewset
|
|
401
404
|
*/
|
|
402
405
|
sourcesLdapCreate(requestParameters: SourcesLdapCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LDAPSource>;
|
|
406
|
+
/**
|
|
407
|
+
* Get raw LDAP data to debug
|
|
408
|
+
*/
|
|
409
|
+
sourcesLdapDebugRetrieveRaw(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LDAPDebug>>;
|
|
410
|
+
/**
|
|
411
|
+
* Get raw LDAP data to debug
|
|
412
|
+
*/
|
|
413
|
+
sourcesLdapDebugRetrieve(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LDAPDebug>;
|
|
403
414
|
/**
|
|
404
415
|
* LDAP Source Viewset
|
|
405
416
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { FilePathRequestToJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SourceFromJSON, SourceTypeFromJSON, TaskFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
|
|
24
|
+
import { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SourceFromJSON, SourceTypeFromJSON, TaskFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -343,6 +343,37 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
343
343
|
return yield response.value();
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Get raw LDAP data to debug
|
|
348
|
+
*/
|
|
349
|
+
sourcesLdapDebugRetrieveRaw(requestParameters, initOverrides) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
352
|
+
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling sourcesLdapDebugRetrieve.');
|
|
353
|
+
}
|
|
354
|
+
const queryParameters = {};
|
|
355
|
+
const headerParameters = {};
|
|
356
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
357
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
358
|
+
}
|
|
359
|
+
const response = yield this.request({
|
|
360
|
+
path: `/sources/ldap/{slug}/debug/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
361
|
+
method: 'GET',
|
|
362
|
+
headers: headerParameters,
|
|
363
|
+
query: queryParameters,
|
|
364
|
+
}, initOverrides);
|
|
365
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPDebugFromJSON(jsonValue));
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Get raw LDAP data to debug
|
|
370
|
+
*/
|
|
371
|
+
sourcesLdapDebugRetrieve(requestParameters, initOverrides) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
const response = yield this.sourcesLdapDebugRetrieveRaw(requestParameters, initOverrides);
|
|
374
|
+
return yield response.value();
|
|
375
|
+
});
|
|
376
|
+
}
|
|
346
377
|
/**
|
|
347
378
|
* LDAP Source Viewset
|
|
348
379
|
*/
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.2.0
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LDAPDebug
|
|
16
|
+
*/
|
|
17
|
+
export interface LDAPDebug {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
21
|
+
* @memberof LDAPDebug
|
|
22
|
+
*/
|
|
23
|
+
readonly user: Array<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
29
|
+
* @memberof LDAPDebug
|
|
30
|
+
*/
|
|
31
|
+
readonly group: Array<{
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
37
|
+
* @memberof LDAPDebug
|
|
38
|
+
*/
|
|
39
|
+
readonly membership: Array<{
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
export declare function LDAPDebugFromJSON(json: any): LDAPDebug;
|
|
44
|
+
export declare function LDAPDebugFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPDebug;
|
|
45
|
+
export declare function LDAPDebugToJSON(value?: LDAPDebug | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.2.0
|
|
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
|
+
export function LDAPDebugFromJSON(json) {
|
|
15
|
+
return LDAPDebugFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function LDAPDebugFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'user': json['user'],
|
|
23
|
+
'group': json['group'],
|
|
24
|
+
'membership': json['membership'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function LDAPDebugToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
@@ -146,6 +146,7 @@ export * from './IssuerModeEnum';
|
|
|
146
146
|
export * from './KubernetesServiceConnection';
|
|
147
147
|
export * from './KubernetesServiceConnectionRequest';
|
|
148
148
|
export * from './LDAPAPIAccessMode';
|
|
149
|
+
export * from './LDAPDebug';
|
|
149
150
|
export * from './LDAPOutpostConfig';
|
|
150
151
|
export * from './LDAPPropertyMapping';
|
|
151
152
|
export * from './LDAPPropertyMappingRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -148,6 +148,7 @@ export * from './IssuerModeEnum';
|
|
|
148
148
|
export * from './KubernetesServiceConnection';
|
|
149
149
|
export * from './KubernetesServiceConnectionRequest';
|
|
150
150
|
export * from './LDAPAPIAccessMode';
|
|
151
|
+
export * from './LDAPDebug';
|
|
151
152
|
export * from './LDAPOutpostConfig';
|
|
152
153
|
export * from './LDAPPropertyMapping';
|
|
153
154
|
export * from './LDAPPropertyMappingRequest';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.2.0
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LDAPDebug
|
|
16
|
+
*/
|
|
17
|
+
export interface LDAPDebug {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
21
|
+
* @memberof LDAPDebug
|
|
22
|
+
*/
|
|
23
|
+
readonly user: Array<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
29
|
+
* @memberof LDAPDebug
|
|
30
|
+
*/
|
|
31
|
+
readonly group: Array<{
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
37
|
+
* @memberof LDAPDebug
|
|
38
|
+
*/
|
|
39
|
+
readonly membership: Array<{
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
export declare function LDAPDebugFromJSON(json: any): LDAPDebug;
|
|
44
|
+
export declare function LDAPDebugFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPDebug;
|
|
45
|
+
export declare function LDAPDebugToJSON(value?: LDAPDebug | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.2.0
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LDAPDebugToJSON = exports.LDAPDebugFromJSONTyped = exports.LDAPDebugFromJSON = void 0;
|
|
17
|
+
function LDAPDebugFromJSON(json) {
|
|
18
|
+
return LDAPDebugFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.LDAPDebugFromJSON = LDAPDebugFromJSON;
|
|
21
|
+
function LDAPDebugFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'user': json['user'],
|
|
27
|
+
'group': json['group'],
|
|
28
|
+
'membership': json['membership'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.LDAPDebugFromJSONTyped = LDAPDebugFromJSONTyped;
|
|
32
|
+
function LDAPDebugToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
exports.LDAPDebugToJSON = LDAPDebugToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ export * from './IssuerModeEnum';
|
|
|
146
146
|
export * from './KubernetesServiceConnection';
|
|
147
147
|
export * from './KubernetesServiceConnectionRequest';
|
|
148
148
|
export * from './LDAPAPIAccessMode';
|
|
149
|
+
export * from './LDAPDebug';
|
|
149
150
|
export * from './LDAPOutpostConfig';
|
|
150
151
|
export * from './LDAPPropertyMapping';
|
|
151
152
|
export * from './LDAPPropertyMappingRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -164,6 +164,7 @@ __exportStar(require("./IssuerModeEnum"), exports);
|
|
|
164
164
|
__exportStar(require("./KubernetesServiceConnection"), exports);
|
|
165
165
|
__exportStar(require("./KubernetesServiceConnectionRequest"), exports);
|
|
166
166
|
__exportStar(require("./LDAPAPIAccessMode"), exports);
|
|
167
|
+
__exportStar(require("./LDAPDebug"), exports);
|
|
167
168
|
__exportStar(require("./LDAPOutpostConfig"), exports);
|
|
168
169
|
__exportStar(require("./LDAPPropertyMapping"), exports);
|
|
169
170
|
__exportStar(require("./LDAPPropertyMappingRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
GenericError,
|
|
22
22
|
GenericErrorFromJSON,
|
|
23
23
|
GenericErrorToJSON,
|
|
24
|
+
LDAPDebug,
|
|
25
|
+
LDAPDebugFromJSON,
|
|
26
|
+
LDAPDebugToJSON,
|
|
24
27
|
LDAPSource,
|
|
25
28
|
LDAPSourceFromJSON,
|
|
26
29
|
LDAPSourceToJSON,
|
|
@@ -183,6 +186,10 @@ export interface SourcesLdapCreateRequest {
|
|
|
183
186
|
lDAPSourceRequest: LDAPSourceRequest;
|
|
184
187
|
}
|
|
185
188
|
|
|
189
|
+
export interface SourcesLdapDebugRetrieveRequest {
|
|
190
|
+
slug: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
186
193
|
export interface SourcesLdapDestroyRequest {
|
|
187
194
|
slug: string;
|
|
188
195
|
}
|
|
@@ -884,6 +891,40 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
884
891
|
return await response.value();
|
|
885
892
|
}
|
|
886
893
|
|
|
894
|
+
/**
|
|
895
|
+
* Get raw LDAP data to debug
|
|
896
|
+
*/
|
|
897
|
+
async sourcesLdapDebugRetrieveRaw(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LDAPDebug>> {
|
|
898
|
+
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
899
|
+
throw new runtime.RequiredError('slug','Required parameter requestParameters.slug was null or undefined when calling sourcesLdapDebugRetrieve.');
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
const queryParameters: any = {};
|
|
903
|
+
|
|
904
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
905
|
+
|
|
906
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
907
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
const response = await this.request({
|
|
911
|
+
path: `/sources/ldap/{slug}/debug/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
912
|
+
method: 'GET',
|
|
913
|
+
headers: headerParameters,
|
|
914
|
+
query: queryParameters,
|
|
915
|
+
}, initOverrides);
|
|
916
|
+
|
|
917
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPDebugFromJSON(jsonValue));
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Get raw LDAP data to debug
|
|
922
|
+
*/
|
|
923
|
+
async sourcesLdapDebugRetrieve(requestParameters: SourcesLdapDebugRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LDAPDebug> {
|
|
924
|
+
const response = await this.sourcesLdapDebugRetrieveRaw(requestParameters, initOverrides);
|
|
925
|
+
return await response.value();
|
|
926
|
+
}
|
|
927
|
+
|
|
887
928
|
/**
|
|
888
929
|
* LDAP Source Viewset
|
|
889
930
|
*/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.2.0
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LDAPDebug
|
|
20
|
+
*/
|
|
21
|
+
export interface LDAPDebug {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
25
|
+
* @memberof LDAPDebug
|
|
26
|
+
*/
|
|
27
|
+
readonly user: Array<{ [key: string]: any; }>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
31
|
+
* @memberof LDAPDebug
|
|
32
|
+
*/
|
|
33
|
+
readonly group: Array<{ [key: string]: any; }>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
37
|
+
* @memberof LDAPDebug
|
|
38
|
+
*/
|
|
39
|
+
readonly membership: Array<{ [key: string]: any; }>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LDAPDebugFromJSON(json: any): LDAPDebug {
|
|
43
|
+
return LDAPDebugFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function LDAPDebugFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPDebug {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'user': json['user'],
|
|
53
|
+
'group': json['group'],
|
|
54
|
+
'membership': json['membership'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function LDAPDebugToJSON(value?: LDAPDebug | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -148,6 +148,7 @@ export * from './IssuerModeEnum';
|
|
|
148
148
|
export * from './KubernetesServiceConnection';
|
|
149
149
|
export * from './KubernetesServiceConnectionRequest';
|
|
150
150
|
export * from './LDAPAPIAccessMode';
|
|
151
|
+
export * from './LDAPDebug';
|
|
151
152
|
export * from './LDAPOutpostConfig';
|
|
152
153
|
export * from './LDAPPropertyMapping';
|
|
153
154
|
export * from './LDAPPropertyMappingRequest';
|