@goauthentik/api 2024.10.2-1731887740 → 2024.10.2-1732206118
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +3 -0
- package/dist/apis/ProvidersApi.d.ts +0 -2
- package/dist/apis/ProvidersApi.js +0 -6
- package/dist/esm/apis/ProvidersApi.d.ts +0 -2
- package/dist/esm/apis/ProvidersApi.js +0 -6
- package/dist/esm/models/MatchingModeEnum.d.ts +24 -0
- package/dist/esm/models/MatchingModeEnum.js +31 -0
- package/dist/esm/models/OAuth2Provider.d.ts +4 -3
- package/dist/esm/models/OAuth2Provider.js +4 -2
- package/dist/esm/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/OAuth2ProviderRequest.js +4 -2
- package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/esm/models/ProxyProvider.d.ts +3 -2
- package/dist/esm/models/ProxyProvider.js +2 -1
- package/dist/esm/models/RedirectURI.d.ts +38 -0
- package/dist/esm/models/RedirectURI.js +47 -0
- package/dist/esm/models/RedirectURIRequest.d.ts +38 -0
- package/dist/esm/models/RedirectURIRequest.js +47 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/MatchingModeEnum.d.ts +24 -0
- package/dist/models/MatchingModeEnum.js +37 -0
- package/dist/models/OAuth2Provider.d.ts +4 -3
- package/dist/models/OAuth2Provider.js +4 -2
- package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/OAuth2ProviderRequest.js +4 -2
- package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/models/ProxyProvider.d.ts +3 -2
- package/dist/models/ProxyProvider.js +2 -1
- package/dist/models/RedirectURI.d.ts +38 -0
- package/dist/models/RedirectURI.js +54 -0
- package/dist/models/RedirectURIRequest.d.ts +38 -0
- package/dist/models/RedirectURIRequest.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +0 -10
- package/src/models/MatchingModeEnum.ts +39 -0
- package/src/models/OAuth2Provider.ts +12 -5
- package/src/models/OAuth2ProviderRequest.ts +12 -5
- package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
- package/src/models/ProxyProvider.ts +9 -3
- package/src/models/RedirectURI.ts +82 -0
- package/src/models/RedirectURIRequest.ts +82 -0
- package/src/models/index.ts +3 -0
@@ -17,6 +17,7 @@ exports.OAuth2ProviderToJSON = exports.OAuth2ProviderFromJSONTyped = exports.OAu
|
|
17
17
|
const runtime_1 = require("../runtime");
|
18
18
|
const ClientTypeEnum_1 = require("./ClientTypeEnum");
|
19
19
|
const IssuerModeEnum_1 = require("./IssuerModeEnum");
|
20
|
+
const RedirectURI_1 = require("./RedirectURI");
|
20
21
|
const SubModeEnum_1 = require("./SubModeEnum");
|
21
22
|
/**
|
22
23
|
* Check if a given object implements the OAuth2Provider interface.
|
@@ -35,6 +36,7 @@ function instanceOfOAuth2Provider(value) {
|
|
35
36
|
isInstance = isInstance && "verboseName" in value;
|
36
37
|
isInstance = isInstance && "verboseNamePlural" in value;
|
37
38
|
isInstance = isInstance && "metaModelName" in value;
|
39
|
+
isInstance = isInstance && "redirectUris" in value;
|
38
40
|
return isInstance;
|
39
41
|
}
|
40
42
|
exports.instanceOfOAuth2Provider = instanceOfOAuth2Provider;
|
@@ -70,7 +72,7 @@ function OAuth2ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
72
|
'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
71
73
|
'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
|
72
74
|
'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
|
73
|
-
'redirectUris':
|
75
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURI_1.RedirectURIFromJSON)),
|
74
76
|
'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
|
75
77
|
'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
|
76
78
|
'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -99,7 +101,7 @@ function OAuth2ProviderToJSON(value) {
|
|
99
101
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
100
102
|
'signing_key': value.signingKey,
|
101
103
|
'encryption_key': value.encryptionKey,
|
102
|
-
'redirect_uris': value.redirectUris,
|
104
|
+
'redirect_uris': (value.redirectUris.map(RedirectURI_1.RedirectURIToJSON)),
|
103
105
|
'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
|
104
106
|
'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
|
105
107
|
'jwks_sources': value.jwksSources,
|
@@ -11,6 +11,7 @@
|
|
11
11
|
*/
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
14
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
15
16
|
/**
|
16
17
|
* OAuth2Provider Serializer
|
@@ -103,11 +104,11 @@ export interface OAuth2ProviderRequest {
|
|
103
104
|
*/
|
104
105
|
encryptionKey?: string | null;
|
105
106
|
/**
|
106
|
-
*
|
107
|
-
* @type {
|
107
|
+
*
|
108
|
+
* @type {Array<RedirectURIRequest>}
|
108
109
|
* @memberof OAuth2ProviderRequest
|
109
110
|
*/
|
110
|
-
redirectUris
|
111
|
+
redirectUris: Array<RedirectURIRequest>;
|
111
112
|
/**
|
112
113
|
*
|
113
114
|
* @type {SubModeEnum}
|
@@ -17,6 +17,7 @@ exports.OAuth2ProviderRequestToJSON = exports.OAuth2ProviderRequestFromJSONTyped
|
|
17
17
|
const runtime_1 = require("../runtime");
|
18
18
|
const ClientTypeEnum_1 = require("./ClientTypeEnum");
|
19
19
|
const IssuerModeEnum_1 = require("./IssuerModeEnum");
|
20
|
+
const RedirectURIRequest_1 = require("./RedirectURIRequest");
|
20
21
|
const SubModeEnum_1 = require("./SubModeEnum");
|
21
22
|
/**
|
22
23
|
* Check if a given object implements the OAuth2ProviderRequest interface.
|
@@ -26,6 +27,7 @@ function instanceOfOAuth2ProviderRequest(value) {
|
|
26
27
|
isInstance = isInstance && "name" in value;
|
27
28
|
isInstance = isInstance && "authorizationFlow" in value;
|
28
29
|
isInstance = isInstance && "invalidationFlow" in value;
|
30
|
+
isInstance = isInstance && "redirectUris" in value;
|
29
31
|
return isInstance;
|
30
32
|
}
|
31
33
|
exports.instanceOfOAuth2ProviderRequest = instanceOfOAuth2ProviderRequest;
|
@@ -52,7 +54,7 @@ function OAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
54
|
'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
53
55
|
'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
|
54
56
|
'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
|
55
|
-
'redirectUris':
|
57
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURIRequest_1.RedirectURIRequestFromJSON)),
|
56
58
|
'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
|
57
59
|
'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
|
58
60
|
'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -81,7 +83,7 @@ function OAuth2ProviderRequestToJSON(value) {
|
|
81
83
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
82
84
|
'signing_key': value.signingKey,
|
83
85
|
'encryption_key': value.encryptionKey,
|
84
|
-
'redirect_uris': value.redirectUris,
|
86
|
+
'redirect_uris': (value.redirectUris.map(RedirectURIRequest_1.RedirectURIRequestToJSON)),
|
85
87
|
'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
|
86
88
|
'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
|
87
89
|
'jwks_sources': value.jwksSources,
|
@@ -11,6 +11,7 @@
|
|
11
11
|
*/
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
14
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
15
16
|
/**
|
16
17
|
* OAuth2Provider Serializer
|
@@ -103,11 +104,11 @@ export interface PatchedOAuth2ProviderRequest {
|
|
103
104
|
*/
|
104
105
|
encryptionKey?: string | null;
|
105
106
|
/**
|
106
|
-
*
|
107
|
-
* @type {
|
107
|
+
*
|
108
|
+
* @type {Array<RedirectURIRequest>}
|
108
109
|
* @memberof PatchedOAuth2ProviderRequest
|
109
110
|
*/
|
110
|
-
redirectUris?:
|
111
|
+
redirectUris?: Array<RedirectURIRequest>;
|
111
112
|
/**
|
112
113
|
*
|
113
114
|
* @type {SubModeEnum}
|
@@ -17,6 +17,7 @@ exports.PatchedOAuth2ProviderRequestToJSON = exports.PatchedOAuth2ProviderReques
|
|
17
17
|
const runtime_1 = require("../runtime");
|
18
18
|
const ClientTypeEnum_1 = require("./ClientTypeEnum");
|
19
19
|
const IssuerModeEnum_1 = require("./IssuerModeEnum");
|
20
|
+
const RedirectURIRequest_1 = require("./RedirectURIRequest");
|
20
21
|
const SubModeEnum_1 = require("./SubModeEnum");
|
21
22
|
/**
|
22
23
|
* Check if a given object implements the PatchedOAuth2ProviderRequest interface.
|
@@ -49,7 +50,7 @@ function PatchedOAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
50
|
'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
50
51
|
'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
|
51
52
|
'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
|
52
|
-
'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : json['redirect_uris'],
|
53
|
+
'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : (json['redirect_uris'].map(RedirectURIRequest_1.RedirectURIRequestFromJSON)),
|
53
54
|
'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
|
54
55
|
'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
|
55
56
|
'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -78,7 +79,7 @@ function PatchedOAuth2ProviderRequestToJSON(value) {
|
|
78
79
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
79
80
|
'signing_key': value.signingKey,
|
80
81
|
'encryption_key': value.encryptionKey,
|
81
|
-
'redirect_uris': value.redirectUris,
|
82
|
+
'redirect_uris': value.redirectUris === undefined ? undefined : (value.redirectUris.map(RedirectURIRequest_1.RedirectURIRequestToJSON)),
|
82
83
|
'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
|
83
84
|
'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
|
84
85
|
'jwks_sources': value.jwksSources,
|
@@ -10,6 +10,7 @@
|
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
12
|
import type { ProxyMode } from './ProxyMode';
|
13
|
+
import type { RedirectURI } from './RedirectURI';
|
13
14
|
/**
|
14
15
|
* ProxyProvider Serializer
|
15
16
|
* @export
|
@@ -168,10 +169,10 @@ export interface ProxyProvider {
|
|
168
169
|
interceptHeaderAuth?: boolean;
|
169
170
|
/**
|
170
171
|
*
|
171
|
-
* @type {
|
172
|
+
* @type {Array<RedirectURI>}
|
172
173
|
* @memberof ProxyProvider
|
173
174
|
*/
|
174
|
-
readonly redirectUris:
|
175
|
+
readonly redirectUris: Array<RedirectURI>;
|
175
176
|
/**
|
176
177
|
*
|
177
178
|
* @type {string}
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProxyProviderToJSON = exports.ProxyProviderFromJSONTyped = exports.ProxyProviderFromJSON = exports.instanceOfProxyProvider = void 0;
|
17
17
|
const runtime_1 = require("../runtime");
|
18
18
|
const ProxyMode_1 = require("./ProxyMode");
|
19
|
+
const RedirectURI_1 = require("./RedirectURI");
|
19
20
|
/**
|
20
21
|
* Check if a given object implements the ProxyProvider interface.
|
21
22
|
*/
|
@@ -74,7 +75,7 @@ function ProxyProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
75
|
'basicAuthUserAttribute': !(0, runtime_1.exists)(json, 'basic_auth_user_attribute') ? undefined : json['basic_auth_user_attribute'],
|
75
76
|
'mode': !(0, runtime_1.exists)(json, 'mode') ? undefined : (0, ProxyMode_1.ProxyModeFromJSON)(json['mode']),
|
76
77
|
'interceptHeaderAuth': !(0, runtime_1.exists)(json, 'intercept_header_auth') ? undefined : json['intercept_header_auth'],
|
77
|
-
'redirectUris': json['redirect_uris'],
|
78
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURI_1.RedirectURIFromJSON)),
|
78
79
|
'cookieDomain': !(0, runtime_1.exists)(json, 'cookie_domain') ? undefined : json['cookie_domain'],
|
79
80
|
'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
80
81
|
'accessTokenValidity': !(0, runtime_1.exists)(json, 'access_token_validity') ? undefined : json['access_token_validity'],
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
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
|
+
import type { MatchingModeEnum } from './MatchingModeEnum';
|
13
|
+
/**
|
14
|
+
* A single allowed redirect URI entry
|
15
|
+
* @export
|
16
|
+
* @interface RedirectURI
|
17
|
+
*/
|
18
|
+
export interface RedirectURI {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {MatchingModeEnum}
|
22
|
+
* @memberof RedirectURI
|
23
|
+
*/
|
24
|
+
matchingMode: MatchingModeEnum;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {string}
|
28
|
+
* @memberof RedirectURI
|
29
|
+
*/
|
30
|
+
url: string;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Check if a given object implements the RedirectURI interface.
|
34
|
+
*/
|
35
|
+
export declare function instanceOfRedirectURI(value: object): boolean;
|
36
|
+
export declare function RedirectURIFromJSON(json: any): RedirectURI;
|
37
|
+
export declare function RedirectURIFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURI;
|
38
|
+
export declare function RedirectURIToJSON(value?: RedirectURI | null): any;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.10.2
|
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.RedirectURIToJSON = exports.RedirectURIFromJSONTyped = exports.RedirectURIFromJSON = exports.instanceOfRedirectURI = void 0;
|
17
|
+
const MatchingModeEnum_1 = require("./MatchingModeEnum");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the RedirectURI interface.
|
20
|
+
*/
|
21
|
+
function instanceOfRedirectURI(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "matchingMode" in value;
|
24
|
+
isInstance = isInstance && "url" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
exports.instanceOfRedirectURI = instanceOfRedirectURI;
|
28
|
+
function RedirectURIFromJSON(json) {
|
29
|
+
return RedirectURIFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
exports.RedirectURIFromJSON = RedirectURIFromJSON;
|
32
|
+
function RedirectURIFromJSONTyped(json, ignoreDiscriminator) {
|
33
|
+
if ((json === undefined) || (json === null)) {
|
34
|
+
return json;
|
35
|
+
}
|
36
|
+
return {
|
37
|
+
'matchingMode': (0, MatchingModeEnum_1.MatchingModeEnumFromJSON)(json['matching_mode']),
|
38
|
+
'url': json['url'],
|
39
|
+
};
|
40
|
+
}
|
41
|
+
exports.RedirectURIFromJSONTyped = RedirectURIFromJSONTyped;
|
42
|
+
function RedirectURIToJSON(value) {
|
43
|
+
if (value === undefined) {
|
44
|
+
return undefined;
|
45
|
+
}
|
46
|
+
if (value === null) {
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
return {
|
50
|
+
'matching_mode': (0, MatchingModeEnum_1.MatchingModeEnumToJSON)(value.matchingMode),
|
51
|
+
'url': value.url,
|
52
|
+
};
|
53
|
+
}
|
54
|
+
exports.RedirectURIToJSON = RedirectURIToJSON;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
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
|
+
import type { MatchingModeEnum } from './MatchingModeEnum';
|
13
|
+
/**
|
14
|
+
* A single allowed redirect URI entry
|
15
|
+
* @export
|
16
|
+
* @interface RedirectURIRequest
|
17
|
+
*/
|
18
|
+
export interface RedirectURIRequest {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {MatchingModeEnum}
|
22
|
+
* @memberof RedirectURIRequest
|
23
|
+
*/
|
24
|
+
matchingMode: MatchingModeEnum;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {string}
|
28
|
+
* @memberof RedirectURIRequest
|
29
|
+
*/
|
30
|
+
url: string;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Check if a given object implements the RedirectURIRequest interface.
|
34
|
+
*/
|
35
|
+
export declare function instanceOfRedirectURIRequest(value: object): boolean;
|
36
|
+
export declare function RedirectURIRequestFromJSON(json: any): RedirectURIRequest;
|
37
|
+
export declare function RedirectURIRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURIRequest;
|
38
|
+
export declare function RedirectURIRequestToJSON(value?: RedirectURIRequest | null): any;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.10.2
|
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.RedirectURIRequestToJSON = exports.RedirectURIRequestFromJSONTyped = exports.RedirectURIRequestFromJSON = exports.instanceOfRedirectURIRequest = void 0;
|
17
|
+
const MatchingModeEnum_1 = require("./MatchingModeEnum");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the RedirectURIRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfRedirectURIRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "matchingMode" in value;
|
24
|
+
isInstance = isInstance && "url" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
exports.instanceOfRedirectURIRequest = instanceOfRedirectURIRequest;
|
28
|
+
function RedirectURIRequestFromJSON(json) {
|
29
|
+
return RedirectURIRequestFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
exports.RedirectURIRequestFromJSON = RedirectURIRequestFromJSON;
|
32
|
+
function RedirectURIRequestFromJSONTyped(json, ignoreDiscriminator) {
|
33
|
+
if ((json === undefined) || (json === null)) {
|
34
|
+
return json;
|
35
|
+
}
|
36
|
+
return {
|
37
|
+
'matchingMode': (0, MatchingModeEnum_1.MatchingModeEnumFromJSON)(json['matching_mode']),
|
38
|
+
'url': json['url'],
|
39
|
+
};
|
40
|
+
}
|
41
|
+
exports.RedirectURIRequestFromJSONTyped = RedirectURIRequestFromJSONTyped;
|
42
|
+
function RedirectURIRequestToJSON(value) {
|
43
|
+
if (value === undefined) {
|
44
|
+
return undefined;
|
45
|
+
}
|
46
|
+
if (value === null) {
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
return {
|
50
|
+
'matching_mode': (0, MatchingModeEnum_1.MatchingModeEnumToJSON)(value.matchingMode),
|
51
|
+
'url': value.url,
|
52
|
+
};
|
53
|
+
}
|
54
|
+
exports.RedirectURIRequestToJSON = RedirectURIRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
@@ -211,6 +211,7 @@ export * from './LogLevelEnum';
|
|
211
211
|
export * from './LoginChallengeTypes';
|
212
212
|
export * from './LoginMetrics';
|
213
213
|
export * from './LoginSource';
|
214
|
+
export * from './MatchingModeEnum';
|
214
215
|
export * from './Metadata';
|
215
216
|
export * from './MicrosoftEntraProvider';
|
216
217
|
export * from './MicrosoftEntraProviderGroup';
|
@@ -535,6 +536,8 @@ export * from './RadiusProviderPropertyMapping';
|
|
535
536
|
export * from './RadiusProviderPropertyMappingRequest';
|
536
537
|
export * from './RadiusProviderRequest';
|
537
538
|
export * from './RedirectChallenge';
|
539
|
+
export * from './RedirectURI';
|
540
|
+
export * from './RedirectURIRequest';
|
538
541
|
export * from './Reputation';
|
539
542
|
export * from './ReputationPolicy';
|
540
543
|
export * from './ReputationPolicyRequest';
|
package/dist/models/index.js
CHANGED
@@ -229,6 +229,7 @@ __exportStar(require("./LogLevelEnum"), exports);
|
|
229
229
|
__exportStar(require("./LoginChallengeTypes"), exports);
|
230
230
|
__exportStar(require("./LoginMetrics"), exports);
|
231
231
|
__exportStar(require("./LoginSource"), exports);
|
232
|
+
__exportStar(require("./MatchingModeEnum"), exports);
|
232
233
|
__exportStar(require("./Metadata"), exports);
|
233
234
|
__exportStar(require("./MicrosoftEntraProvider"), exports);
|
234
235
|
__exportStar(require("./MicrosoftEntraProviderGroup"), exports);
|
@@ -553,6 +554,8 @@ __exportStar(require("./RadiusProviderPropertyMapping"), exports);
|
|
553
554
|
__exportStar(require("./RadiusProviderPropertyMappingRequest"), exports);
|
554
555
|
__exportStar(require("./RadiusProviderRequest"), exports);
|
555
556
|
__exportStar(require("./RedirectChallenge"), exports);
|
557
|
+
__exportStar(require("./RedirectURI"), exports);
|
558
|
+
__exportStar(require("./RedirectURIRequest"), exports);
|
556
559
|
__exportStar(require("./Reputation"), exports);
|
557
560
|
__exportStar(require("./ReputationPolicy"), exports);
|
558
561
|
__exportStar(require("./ReputationPolicyRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/ProvidersApi.ts
CHANGED
@@ -497,7 +497,6 @@ export interface ProvidersOauth2ListRequest {
|
|
497
497
|
page?: number;
|
498
498
|
pageSize?: number;
|
499
499
|
propertyMappings?: Array<string>;
|
500
|
-
redirectUris?: string;
|
501
500
|
refreshTokenValidity?: string;
|
502
501
|
search?: string;
|
503
502
|
signingKey?: string;
|
@@ -557,7 +556,6 @@ export interface ProvidersProxyListRequest {
|
|
557
556
|
page?: number;
|
558
557
|
pageSize?: number;
|
559
558
|
propertyMappingsIexact?: Array<string>;
|
560
|
-
redirectUrisIexact?: string;
|
561
559
|
search?: string;
|
562
560
|
skipPathRegexIexact?: string;
|
563
561
|
}
|
@@ -3134,10 +3132,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
3134
3132
|
queryParameters['property_mappings'] = requestParameters.propertyMappings;
|
3135
3133
|
}
|
3136
3134
|
|
3137
|
-
if (requestParameters.redirectUris !== undefined) {
|
3138
|
-
queryParameters['redirect_uris'] = requestParameters.redirectUris;
|
3139
|
-
}
|
3140
|
-
|
3141
3135
|
if (requestParameters.refreshTokenValidity !== undefined) {
|
3142
3136
|
queryParameters['refresh_token_validity'] = requestParameters.refreshTokenValidity;
|
3143
3137
|
}
|
@@ -3576,10 +3570,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
3576
3570
|
queryParameters['property_mappings__iexact'] = requestParameters.propertyMappingsIexact;
|
3577
3571
|
}
|
3578
3572
|
|
3579
|
-
if (requestParameters.redirectUrisIexact !== undefined) {
|
3580
|
-
queryParameters['redirect_uris__iexact'] = requestParameters.redirectUrisIexact;
|
3581
|
-
}
|
3582
|
-
|
3583
3573
|
if (requestParameters.search !== undefined) {
|
3584
3574
|
queryParameters['search'] = requestParameters.search;
|
3585
3575
|
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.10.2
|
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
|
+
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
*/
|
20
|
+
export const MatchingModeEnum = {
|
21
|
+
Strict: 'strict',
|
22
|
+
Regex: 'regex',
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
24
|
+
} as const;
|
25
|
+
export type MatchingModeEnum = typeof MatchingModeEnum[keyof typeof MatchingModeEnum];
|
26
|
+
|
27
|
+
|
28
|
+
export function MatchingModeEnumFromJSON(json: any): MatchingModeEnum {
|
29
|
+
return MatchingModeEnumFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
|
32
|
+
export function MatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingModeEnum {
|
33
|
+
return json as MatchingModeEnum;
|
34
|
+
}
|
35
|
+
|
36
|
+
export function MatchingModeEnumToJSON(value?: MatchingModeEnum | null): any {
|
37
|
+
return value as any;
|
38
|
+
}
|
39
|
+
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURI } from './RedirectURI';
|
29
|
+
import {
|
30
|
+
RedirectURIFromJSON,
|
31
|
+
RedirectURIFromJSONTyped,
|
32
|
+
RedirectURIToJSON,
|
33
|
+
} from './RedirectURI';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -177,11 +183,11 @@ export interface OAuth2Provider {
|
|
177
183
|
*/
|
178
184
|
encryptionKey?: string | null;
|
179
185
|
/**
|
180
|
-
*
|
181
|
-
* @type {
|
186
|
+
*
|
187
|
+
* @type {Array<RedirectURI>}
|
182
188
|
* @memberof OAuth2Provider
|
183
189
|
*/
|
184
|
-
redirectUris
|
190
|
+
redirectUris: Array<RedirectURI>;
|
185
191
|
/**
|
186
192
|
*
|
187
193
|
* @type {SubModeEnum}
|
@@ -219,6 +225,7 @@ export function instanceOfOAuth2Provider(value: object): boolean {
|
|
219
225
|
isInstance = isInstance && "verboseName" in value;
|
220
226
|
isInstance = isInstance && "verboseNamePlural" in value;
|
221
227
|
isInstance = isInstance && "metaModelName" in value;
|
228
|
+
isInstance = isInstance && "redirectUris" in value;
|
222
229
|
|
223
230
|
return isInstance;
|
224
231
|
}
|
@@ -256,7 +263,7 @@ export function OAuth2ProviderFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
256
263
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
257
264
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
258
265
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
259
|
-
'redirectUris':
|
266
|
+
'redirectUris': ((json['redirect_uris'] as Array<any>).map(RedirectURIFromJSON)),
|
260
267
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
261
268
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
262
269
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -286,7 +293,7 @@ export function OAuth2ProviderToJSON(value?: OAuth2Provider | null): any {
|
|
286
293
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
287
294
|
'signing_key': value.signingKey,
|
288
295
|
'encryption_key': value.encryptionKey,
|
289
|
-
'redirect_uris': value.redirectUris,
|
296
|
+
'redirect_uris': ((value.redirectUris as Array<any>).map(RedirectURIToJSON)),
|
290
297
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
291
298
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
292
299
|
'jwks_sources': value.jwksSources,
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
29
|
+
import {
|
30
|
+
RedirectURIRequestFromJSON,
|
31
|
+
RedirectURIRequestFromJSONTyped,
|
32
|
+
RedirectURIRequestToJSON,
|
33
|
+
} from './RedirectURIRequest';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -123,11 +129,11 @@ export interface OAuth2ProviderRequest {
|
|
123
129
|
*/
|
124
130
|
encryptionKey?: string | null;
|
125
131
|
/**
|
126
|
-
*
|
127
|
-
* @type {
|
132
|
+
*
|
133
|
+
* @type {Array<RedirectURIRequest>}
|
128
134
|
* @memberof OAuth2ProviderRequest
|
129
135
|
*/
|
130
|
-
redirectUris
|
136
|
+
redirectUris: Array<RedirectURIRequest>;
|
131
137
|
/**
|
132
138
|
*
|
133
139
|
* @type {SubModeEnum}
|
@@ -156,6 +162,7 @@ export function instanceOfOAuth2ProviderRequest(value: object): boolean {
|
|
156
162
|
isInstance = isInstance && "name" in value;
|
157
163
|
isInstance = isInstance && "authorizationFlow" in value;
|
158
164
|
isInstance = isInstance && "invalidationFlow" in value;
|
165
|
+
isInstance = isInstance && "redirectUris" in value;
|
159
166
|
|
160
167
|
return isInstance;
|
161
168
|
}
|
@@ -184,7 +191,7 @@ export function OAuth2ProviderRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
184
191
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
185
192
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
186
193
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
187
|
-
'redirectUris':
|
194
|
+
'redirectUris': ((json['redirect_uris'] as Array<any>).map(RedirectURIRequestFromJSON)),
|
188
195
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
189
196
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
190
197
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -214,7 +221,7 @@ export function OAuth2ProviderRequestToJSON(value?: OAuth2ProviderRequest | null
|
|
214
221
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
215
222
|
'signing_key': value.signingKey,
|
216
223
|
'encryption_key': value.encryptionKey,
|
217
|
-
'redirect_uris': value.redirectUris,
|
224
|
+
'redirect_uris': ((value.redirectUris as Array<any>).map(RedirectURIRequestToJSON)),
|
218
225
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
219
226
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
220
227
|
'jwks_sources': value.jwksSources,
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
29
|
+
import {
|
30
|
+
RedirectURIRequestFromJSON,
|
31
|
+
RedirectURIRequestFromJSONTyped,
|
32
|
+
RedirectURIRequestToJSON,
|
33
|
+
} from './RedirectURIRequest';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -123,11 +129,11 @@ export interface PatchedOAuth2ProviderRequest {
|
|
123
129
|
*/
|
124
130
|
encryptionKey?: string | null;
|
125
131
|
/**
|
126
|
-
*
|
127
|
-
* @type {
|
132
|
+
*
|
133
|
+
* @type {Array<RedirectURIRequest>}
|
128
134
|
* @memberof PatchedOAuth2ProviderRequest
|
129
135
|
*/
|
130
|
-
redirectUris?:
|
136
|
+
redirectUris?: Array<RedirectURIRequest>;
|
131
137
|
/**
|
132
138
|
*
|
133
139
|
* @type {SubModeEnum}
|
@@ -181,7 +187,7 @@ export function PatchedOAuth2ProviderRequestFromJSONTyped(json: any, ignoreDiscr
|
|
181
187
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
182
188
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
183
189
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
184
|
-
'redirectUris': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],
|
190
|
+
'redirectUris': !exists(json, 'redirect_uris') ? undefined : ((json['redirect_uris'] as Array<any>).map(RedirectURIRequestFromJSON)),
|
185
191
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
186
192
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
187
193
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -211,7 +217,7 @@ export function PatchedOAuth2ProviderRequestToJSON(value?: PatchedOAuth2Provider
|
|
211
217
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
212
218
|
'signing_key': value.signingKey,
|
213
219
|
'encryption_key': value.encryptionKey,
|
214
|
-
'redirect_uris': value.redirectUris,
|
220
|
+
'redirect_uris': value.redirectUris === undefined ? undefined : ((value.redirectUris as Array<any>).map(RedirectURIRequestToJSON)),
|
215
221
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
216
222
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
217
223
|
'jwks_sources': value.jwksSources,
|