@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/models/AuthenticatorValidateStage.js +5 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/AuthenticatorValidateStage.ts +22 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -39,8 +39,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
39
39
|
}
|
40
40
|
const queryParameters = {};
|
41
41
|
const headerParameters = {};
|
42
|
-
if (this.configuration && this.configuration.
|
43
|
-
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
43
|
+
const token = this.configuration.accessToken;
|
44
|
+
const tokenString = yield token("authentik", []);
|
45
|
+
if (tokenString) {
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
47
|
+
}
|
44
48
|
}
|
45
49
|
const response = yield this.request({
|
46
50
|
path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -84,8 +88,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
84
88
|
queryParameters['search'] = requestParameters.search;
|
85
89
|
}
|
86
90
|
const headerParameters = {};
|
87
|
-
if (this.configuration && this.configuration.
|
88
|
-
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
92
|
+
const token = this.configuration.accessToken;
|
93
|
+
const tokenString = yield token("authentik", []);
|
94
|
+
if (tokenString) {
|
95
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
96
|
+
}
|
89
97
|
}
|
90
98
|
const response = yield this.request({
|
91
99
|
path: `/providers/all/`,
|
@@ -115,8 +123,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
115
123
|
}
|
116
124
|
const queryParameters = {};
|
117
125
|
const headerParameters = {};
|
118
|
-
if (this.configuration && this.configuration.
|
119
|
-
|
126
|
+
if (this.configuration && this.configuration.accessToken) {
|
127
|
+
const token = this.configuration.accessToken;
|
128
|
+
const tokenString = yield token("authentik", []);
|
129
|
+
if (tokenString) {
|
130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
131
|
+
}
|
120
132
|
}
|
121
133
|
const response = yield this.request({
|
122
134
|
path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -143,8 +155,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
143
155
|
return __awaiter(this, void 0, void 0, function* () {
|
144
156
|
const queryParameters = {};
|
145
157
|
const headerParameters = {};
|
146
|
-
if (this.configuration && this.configuration.
|
147
|
-
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
159
|
+
const token = this.configuration.accessToken;
|
160
|
+
const tokenString = yield token("authentik", []);
|
161
|
+
if (tokenString) {
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
163
|
+
}
|
148
164
|
}
|
149
165
|
const response = yield this.request({
|
150
166
|
path: `/providers/all/types/`,
|
@@ -174,8 +190,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
174
190
|
}
|
175
191
|
const queryParameters = {};
|
176
192
|
const headerParameters = {};
|
177
|
-
if (this.configuration && this.configuration.
|
178
|
-
|
193
|
+
if (this.configuration && this.configuration.accessToken) {
|
194
|
+
const token = this.configuration.accessToken;
|
195
|
+
const tokenString = yield token("authentik", []);
|
196
|
+
if (tokenString) {
|
197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
198
|
+
}
|
179
199
|
}
|
180
200
|
const response = yield this.request({
|
181
201
|
path: `/providers/all/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -206,8 +226,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
206
226
|
const queryParameters = {};
|
207
227
|
const headerParameters = {};
|
208
228
|
headerParameters['Content-Type'] = 'application/json';
|
209
|
-
if (this.configuration && this.configuration.
|
210
|
-
|
229
|
+
if (this.configuration && this.configuration.accessToken) {
|
230
|
+
const token = this.configuration.accessToken;
|
231
|
+
const tokenString = yield token("authentik", []);
|
232
|
+
if (tokenString) {
|
233
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
234
|
+
}
|
211
235
|
}
|
212
236
|
const response = yield this.request({
|
213
237
|
path: `/providers/ldap/`,
|
@@ -238,8 +262,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
238
262
|
}
|
239
263
|
const queryParameters = {};
|
240
264
|
const headerParameters = {};
|
241
|
-
if (this.configuration && this.configuration.
|
242
|
-
|
265
|
+
if (this.configuration && this.configuration.accessToken) {
|
266
|
+
const token = this.configuration.accessToken;
|
267
|
+
const tokenString = yield token("authentik", []);
|
268
|
+
if (tokenString) {
|
269
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
270
|
+
}
|
243
271
|
}
|
244
272
|
const response = yield this.request({
|
245
273
|
path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -310,8 +338,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
310
338
|
queryParameters['uid_start_number__iexact'] = requestParameters.uidStartNumberIexact;
|
311
339
|
}
|
312
340
|
const headerParameters = {};
|
313
|
-
if (this.configuration && this.configuration.
|
314
|
-
|
341
|
+
if (this.configuration && this.configuration.accessToken) {
|
342
|
+
const token = this.configuration.accessToken;
|
343
|
+
const tokenString = yield token("authentik", []);
|
344
|
+
if (tokenString) {
|
345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
346
|
+
}
|
315
347
|
}
|
316
348
|
const response = yield this.request({
|
317
349
|
path: `/providers/ldap/`,
|
@@ -342,8 +374,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
342
374
|
const queryParameters = {};
|
343
375
|
const headerParameters = {};
|
344
376
|
headerParameters['Content-Type'] = 'application/json';
|
345
|
-
if (this.configuration && this.configuration.
|
346
|
-
|
377
|
+
if (this.configuration && this.configuration.accessToken) {
|
378
|
+
const token = this.configuration.accessToken;
|
379
|
+
const tokenString = yield token("authentik", []);
|
380
|
+
if (tokenString) {
|
381
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
382
|
+
}
|
347
383
|
}
|
348
384
|
const response = yield this.request({
|
349
385
|
path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -374,8 +410,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
374
410
|
}
|
375
411
|
const queryParameters = {};
|
376
412
|
const headerParameters = {};
|
377
|
-
if (this.configuration && this.configuration.
|
378
|
-
|
413
|
+
if (this.configuration && this.configuration.accessToken) {
|
414
|
+
const token = this.configuration.accessToken;
|
415
|
+
const tokenString = yield token("authentik", []);
|
416
|
+
if (tokenString) {
|
417
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
418
|
+
}
|
379
419
|
}
|
380
420
|
const response = yield this.request({
|
381
421
|
path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -409,8 +449,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
409
449
|
const queryParameters = {};
|
410
450
|
const headerParameters = {};
|
411
451
|
headerParameters['Content-Type'] = 'application/json';
|
412
|
-
if (this.configuration && this.configuration.
|
413
|
-
|
452
|
+
if (this.configuration && this.configuration.accessToken) {
|
453
|
+
const token = this.configuration.accessToken;
|
454
|
+
const tokenString = yield token("authentik", []);
|
455
|
+
if (tokenString) {
|
456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
457
|
+
}
|
414
458
|
}
|
415
459
|
const response = yield this.request({
|
416
460
|
path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -441,8 +485,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
441
485
|
}
|
442
486
|
const queryParameters = {};
|
443
487
|
const headerParameters = {};
|
444
|
-
if (this.configuration && this.configuration.
|
445
|
-
|
488
|
+
if (this.configuration && this.configuration.accessToken) {
|
489
|
+
const token = this.configuration.accessToken;
|
490
|
+
const tokenString = yield token("authentik", []);
|
491
|
+
if (tokenString) {
|
492
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
493
|
+
}
|
446
494
|
}
|
447
495
|
const response = yield this.request({
|
448
496
|
path: `/providers/ldap/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -473,8 +521,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
473
521
|
const queryParameters = {};
|
474
522
|
const headerParameters = {};
|
475
523
|
headerParameters['Content-Type'] = 'application/json';
|
476
|
-
if (this.configuration && this.configuration.
|
477
|
-
|
524
|
+
if (this.configuration && this.configuration.accessToken) {
|
525
|
+
const token = this.configuration.accessToken;
|
526
|
+
const tokenString = yield token("authentik", []);
|
527
|
+
if (tokenString) {
|
528
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
529
|
+
}
|
478
530
|
}
|
479
531
|
const response = yield this.request({
|
480
532
|
path: `/providers/oauth2/`,
|
@@ -505,8 +557,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
505
557
|
}
|
506
558
|
const queryParameters = {};
|
507
559
|
const headerParameters = {};
|
508
|
-
if (this.configuration && this.configuration.
|
509
|
-
|
560
|
+
if (this.configuration && this.configuration.accessToken) {
|
561
|
+
const token = this.configuration.accessToken;
|
562
|
+
const tokenString = yield token("authentik", []);
|
563
|
+
if (tokenString) {
|
564
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
565
|
+
}
|
510
566
|
}
|
511
567
|
const response = yield this.request({
|
512
568
|
path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -586,8 +642,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
586
642
|
queryParameters['sub_mode'] = requestParameters.subMode;
|
587
643
|
}
|
588
644
|
const headerParameters = {};
|
589
|
-
if (this.configuration && this.configuration.
|
590
|
-
|
645
|
+
if (this.configuration && this.configuration.accessToken) {
|
646
|
+
const token = this.configuration.accessToken;
|
647
|
+
const tokenString = yield token("authentik", []);
|
648
|
+
if (tokenString) {
|
649
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
650
|
+
}
|
591
651
|
}
|
592
652
|
const response = yield this.request({
|
593
653
|
path: `/providers/oauth2/`,
|
@@ -618,8 +678,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
618
678
|
const queryParameters = {};
|
619
679
|
const headerParameters = {};
|
620
680
|
headerParameters['Content-Type'] = 'application/json';
|
621
|
-
if (this.configuration && this.configuration.
|
622
|
-
|
681
|
+
if (this.configuration && this.configuration.accessToken) {
|
682
|
+
const token = this.configuration.accessToken;
|
683
|
+
const tokenString = yield token("authentik", []);
|
684
|
+
if (tokenString) {
|
685
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
686
|
+
}
|
623
687
|
}
|
624
688
|
const response = yield this.request({
|
625
689
|
path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -653,8 +717,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
653
717
|
queryParameters['for_user'] = requestParameters.forUser;
|
654
718
|
}
|
655
719
|
const headerParameters = {};
|
656
|
-
if (this.configuration && this.configuration.
|
657
|
-
|
720
|
+
if (this.configuration && this.configuration.accessToken) {
|
721
|
+
const token = this.configuration.accessToken;
|
722
|
+
const tokenString = yield token("authentik", []);
|
723
|
+
if (tokenString) {
|
724
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
725
|
+
}
|
658
726
|
}
|
659
727
|
const response = yield this.request({
|
660
728
|
path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -684,8 +752,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
684
752
|
}
|
685
753
|
const queryParameters = {};
|
686
754
|
const headerParameters = {};
|
687
|
-
if (this.configuration && this.configuration.
|
688
|
-
|
755
|
+
if (this.configuration && this.configuration.accessToken) {
|
756
|
+
const token = this.configuration.accessToken;
|
757
|
+
const tokenString = yield token("authentik", []);
|
758
|
+
if (tokenString) {
|
759
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
760
|
+
}
|
689
761
|
}
|
690
762
|
const response = yield this.request({
|
691
763
|
path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -715,8 +787,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
715
787
|
}
|
716
788
|
const queryParameters = {};
|
717
789
|
const headerParameters = {};
|
718
|
-
if (this.configuration && this.configuration.
|
719
|
-
|
790
|
+
if (this.configuration && this.configuration.accessToken) {
|
791
|
+
const token = this.configuration.accessToken;
|
792
|
+
const tokenString = yield token("authentik", []);
|
793
|
+
if (tokenString) {
|
794
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
795
|
+
}
|
720
796
|
}
|
721
797
|
const response = yield this.request({
|
722
798
|
path: `/providers/oauth2/{id}/setup_urls/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -750,8 +826,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
750
826
|
const queryParameters = {};
|
751
827
|
const headerParameters = {};
|
752
828
|
headerParameters['Content-Type'] = 'application/json';
|
753
|
-
if (this.configuration && this.configuration.
|
754
|
-
|
829
|
+
if (this.configuration && this.configuration.accessToken) {
|
830
|
+
const token = this.configuration.accessToken;
|
831
|
+
const tokenString = yield token("authentik", []);
|
832
|
+
if (tokenString) {
|
833
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
834
|
+
}
|
755
835
|
}
|
756
836
|
const response = yield this.request({
|
757
837
|
path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -782,8 +862,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
782
862
|
}
|
783
863
|
const queryParameters = {};
|
784
864
|
const headerParameters = {};
|
785
|
-
if (this.configuration && this.configuration.
|
786
|
-
|
865
|
+
if (this.configuration && this.configuration.accessToken) {
|
866
|
+
const token = this.configuration.accessToken;
|
867
|
+
const tokenString = yield token("authentik", []);
|
868
|
+
if (tokenString) {
|
869
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
870
|
+
}
|
787
871
|
}
|
788
872
|
const response = yield this.request({
|
789
873
|
path: `/providers/oauth2/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -814,8 +898,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
814
898
|
const queryParameters = {};
|
815
899
|
const headerParameters = {};
|
816
900
|
headerParameters['Content-Type'] = 'application/json';
|
817
|
-
if (this.configuration && this.configuration.
|
818
|
-
|
901
|
+
if (this.configuration && this.configuration.accessToken) {
|
902
|
+
const token = this.configuration.accessToken;
|
903
|
+
const tokenString = yield token("authentik", []);
|
904
|
+
if (tokenString) {
|
905
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
906
|
+
}
|
819
907
|
}
|
820
908
|
const response = yield this.request({
|
821
909
|
path: `/providers/proxy/`,
|
@@ -846,8 +934,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
846
934
|
}
|
847
935
|
const queryParameters = {};
|
848
936
|
const headerParameters = {};
|
849
|
-
if (this.configuration && this.configuration.
|
850
|
-
|
937
|
+
if (this.configuration && this.configuration.accessToken) {
|
938
|
+
const token = this.configuration.accessToken;
|
939
|
+
const tokenString = yield token("authentik", []);
|
940
|
+
if (tokenString) {
|
941
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
942
|
+
}
|
851
943
|
}
|
852
944
|
const response = yield this.request({
|
853
945
|
path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -933,8 +1025,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
933
1025
|
queryParameters['skip_path_regex__iexact'] = requestParameters.skipPathRegexIexact;
|
934
1026
|
}
|
935
1027
|
const headerParameters = {};
|
936
|
-
if (this.configuration && this.configuration.
|
937
|
-
|
1028
|
+
if (this.configuration && this.configuration.accessToken) {
|
1029
|
+
const token = this.configuration.accessToken;
|
1030
|
+
const tokenString = yield token("authentik", []);
|
1031
|
+
if (tokenString) {
|
1032
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1033
|
+
}
|
938
1034
|
}
|
939
1035
|
const response = yield this.request({
|
940
1036
|
path: `/providers/proxy/`,
|
@@ -965,8 +1061,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
965
1061
|
const queryParameters = {};
|
966
1062
|
const headerParameters = {};
|
967
1063
|
headerParameters['Content-Type'] = 'application/json';
|
968
|
-
if (this.configuration && this.configuration.
|
969
|
-
|
1064
|
+
if (this.configuration && this.configuration.accessToken) {
|
1065
|
+
const token = this.configuration.accessToken;
|
1066
|
+
const tokenString = yield token("authentik", []);
|
1067
|
+
if (tokenString) {
|
1068
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1069
|
+
}
|
970
1070
|
}
|
971
1071
|
const response = yield this.request({
|
972
1072
|
path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -997,8 +1097,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
997
1097
|
}
|
998
1098
|
const queryParameters = {};
|
999
1099
|
const headerParameters = {};
|
1000
|
-
if (this.configuration && this.configuration.
|
1001
|
-
|
1100
|
+
if (this.configuration && this.configuration.accessToken) {
|
1101
|
+
const token = this.configuration.accessToken;
|
1102
|
+
const tokenString = yield token("authentik", []);
|
1103
|
+
if (tokenString) {
|
1104
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1105
|
+
}
|
1002
1106
|
}
|
1003
1107
|
const response = yield this.request({
|
1004
1108
|
path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1032,8 +1136,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1032
1136
|
const queryParameters = {};
|
1033
1137
|
const headerParameters = {};
|
1034
1138
|
headerParameters['Content-Type'] = 'application/json';
|
1035
|
-
if (this.configuration && this.configuration.
|
1036
|
-
|
1139
|
+
if (this.configuration && this.configuration.accessToken) {
|
1140
|
+
const token = this.configuration.accessToken;
|
1141
|
+
const tokenString = yield token("authentik", []);
|
1142
|
+
if (tokenString) {
|
1143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1144
|
+
}
|
1037
1145
|
}
|
1038
1146
|
const response = yield this.request({
|
1039
1147
|
path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1064,8 +1172,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1064
1172
|
}
|
1065
1173
|
const queryParameters = {};
|
1066
1174
|
const headerParameters = {};
|
1067
|
-
if (this.configuration && this.configuration.
|
1068
|
-
|
1175
|
+
if (this.configuration && this.configuration.accessToken) {
|
1176
|
+
const token = this.configuration.accessToken;
|
1177
|
+
const tokenString = yield token("authentik", []);
|
1178
|
+
if (tokenString) {
|
1179
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1180
|
+
}
|
1069
1181
|
}
|
1070
1182
|
const response = yield this.request({
|
1071
1183
|
path: `/providers/proxy/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1096,8 +1208,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1096
1208
|
const queryParameters = {};
|
1097
1209
|
const headerParameters = {};
|
1098
1210
|
headerParameters['Content-Type'] = 'application/json';
|
1099
|
-
if (this.configuration && this.configuration.
|
1100
|
-
|
1211
|
+
if (this.configuration && this.configuration.accessToken) {
|
1212
|
+
const token = this.configuration.accessToken;
|
1213
|
+
const tokenString = yield token("authentik", []);
|
1214
|
+
if (tokenString) {
|
1215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1216
|
+
}
|
1101
1217
|
}
|
1102
1218
|
const response = yield this.request({
|
1103
1219
|
path: `/providers/rac/`,
|
@@ -1128,8 +1244,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1128
1244
|
}
|
1129
1245
|
const queryParameters = {};
|
1130
1246
|
const headerParameters = {};
|
1131
|
-
if (this.configuration && this.configuration.
|
1132
|
-
|
1247
|
+
if (this.configuration && this.configuration.accessToken) {
|
1248
|
+
const token = this.configuration.accessToken;
|
1249
|
+
const tokenString = yield token("authentik", []);
|
1250
|
+
if (tokenString) {
|
1251
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1252
|
+
}
|
1133
1253
|
}
|
1134
1254
|
const response = yield this.request({
|
1135
1255
|
path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1173,8 +1293,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1173
1293
|
queryParameters['search'] = requestParameters.search;
|
1174
1294
|
}
|
1175
1295
|
const headerParameters = {};
|
1176
|
-
if (this.configuration && this.configuration.
|
1177
|
-
|
1296
|
+
if (this.configuration && this.configuration.accessToken) {
|
1297
|
+
const token = this.configuration.accessToken;
|
1298
|
+
const tokenString = yield token("authentik", []);
|
1299
|
+
if (tokenString) {
|
1300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1301
|
+
}
|
1178
1302
|
}
|
1179
1303
|
const response = yield this.request({
|
1180
1304
|
path: `/providers/rac/`,
|
@@ -1205,8 +1329,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1205
1329
|
const queryParameters = {};
|
1206
1330
|
const headerParameters = {};
|
1207
1331
|
headerParameters['Content-Type'] = 'application/json';
|
1208
|
-
if (this.configuration && this.configuration.
|
1209
|
-
|
1332
|
+
if (this.configuration && this.configuration.accessToken) {
|
1333
|
+
const token = this.configuration.accessToken;
|
1334
|
+
const tokenString = yield token("authentik", []);
|
1335
|
+
if (tokenString) {
|
1336
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1337
|
+
}
|
1210
1338
|
}
|
1211
1339
|
const response = yield this.request({
|
1212
1340
|
path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1237,8 +1365,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1237
1365
|
}
|
1238
1366
|
const queryParameters = {};
|
1239
1367
|
const headerParameters = {};
|
1240
|
-
if (this.configuration && this.configuration.
|
1241
|
-
|
1368
|
+
if (this.configuration && this.configuration.accessToken) {
|
1369
|
+
const token = this.configuration.accessToken;
|
1370
|
+
const tokenString = yield token("authentik", []);
|
1371
|
+
if (tokenString) {
|
1372
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1373
|
+
}
|
1242
1374
|
}
|
1243
1375
|
const response = yield this.request({
|
1244
1376
|
path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1272,8 +1404,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1272
1404
|
const queryParameters = {};
|
1273
1405
|
const headerParameters = {};
|
1274
1406
|
headerParameters['Content-Type'] = 'application/json';
|
1275
|
-
if (this.configuration && this.configuration.
|
1276
|
-
|
1407
|
+
if (this.configuration && this.configuration.accessToken) {
|
1408
|
+
const token = this.configuration.accessToken;
|
1409
|
+
const tokenString = yield token("authentik", []);
|
1410
|
+
if (tokenString) {
|
1411
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1412
|
+
}
|
1277
1413
|
}
|
1278
1414
|
const response = yield this.request({
|
1279
1415
|
path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1304,8 +1440,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1304
1440
|
}
|
1305
1441
|
const queryParameters = {};
|
1306
1442
|
const headerParameters = {};
|
1307
|
-
if (this.configuration && this.configuration.
|
1308
|
-
|
1443
|
+
if (this.configuration && this.configuration.accessToken) {
|
1444
|
+
const token = this.configuration.accessToken;
|
1445
|
+
const tokenString = yield token("authentik", []);
|
1446
|
+
if (tokenString) {
|
1447
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1448
|
+
}
|
1309
1449
|
}
|
1310
1450
|
const response = yield this.request({
|
1311
1451
|
path: `/providers/rac/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1336,8 +1476,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1336
1476
|
const queryParameters = {};
|
1337
1477
|
const headerParameters = {};
|
1338
1478
|
headerParameters['Content-Type'] = 'application/json';
|
1339
|
-
if (this.configuration && this.configuration.
|
1340
|
-
|
1479
|
+
if (this.configuration && this.configuration.accessToken) {
|
1480
|
+
const token = this.configuration.accessToken;
|
1481
|
+
const tokenString = yield token("authentik", []);
|
1482
|
+
if (tokenString) {
|
1483
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1484
|
+
}
|
1341
1485
|
}
|
1342
1486
|
const response = yield this.request({
|
1343
1487
|
path: `/providers/radius/`,
|
@@ -1368,8 +1512,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1368
1512
|
}
|
1369
1513
|
const queryParameters = {};
|
1370
1514
|
const headerParameters = {};
|
1371
|
-
if (this.configuration && this.configuration.
|
1372
|
-
|
1515
|
+
if (this.configuration && this.configuration.accessToken) {
|
1516
|
+
const token = this.configuration.accessToken;
|
1517
|
+
const tokenString = yield token("authentik", []);
|
1518
|
+
if (tokenString) {
|
1519
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1520
|
+
}
|
1373
1521
|
}
|
1374
1522
|
const response = yield this.request({
|
1375
1523
|
path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1419,8 +1567,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1419
1567
|
queryParameters['search'] = requestParameters.search;
|
1420
1568
|
}
|
1421
1569
|
const headerParameters = {};
|
1422
|
-
if (this.configuration && this.configuration.
|
1423
|
-
|
1570
|
+
if (this.configuration && this.configuration.accessToken) {
|
1571
|
+
const token = this.configuration.accessToken;
|
1572
|
+
const tokenString = yield token("authentik", []);
|
1573
|
+
if (tokenString) {
|
1574
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1575
|
+
}
|
1424
1576
|
}
|
1425
1577
|
const response = yield this.request({
|
1426
1578
|
path: `/providers/radius/`,
|
@@ -1451,8 +1603,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1451
1603
|
const queryParameters = {};
|
1452
1604
|
const headerParameters = {};
|
1453
1605
|
headerParameters['Content-Type'] = 'application/json';
|
1454
|
-
if (this.configuration && this.configuration.
|
1455
|
-
|
1606
|
+
if (this.configuration && this.configuration.accessToken) {
|
1607
|
+
const token = this.configuration.accessToken;
|
1608
|
+
const tokenString = yield token("authentik", []);
|
1609
|
+
if (tokenString) {
|
1610
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1611
|
+
}
|
1456
1612
|
}
|
1457
1613
|
const response = yield this.request({
|
1458
1614
|
path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1483,8 +1639,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1483
1639
|
}
|
1484
1640
|
const queryParameters = {};
|
1485
1641
|
const headerParameters = {};
|
1486
|
-
if (this.configuration && this.configuration.
|
1487
|
-
|
1642
|
+
if (this.configuration && this.configuration.accessToken) {
|
1643
|
+
const token = this.configuration.accessToken;
|
1644
|
+
const tokenString = yield token("authentik", []);
|
1645
|
+
if (tokenString) {
|
1646
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1647
|
+
}
|
1488
1648
|
}
|
1489
1649
|
const response = yield this.request({
|
1490
1650
|
path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1518,8 +1678,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1518
1678
|
const queryParameters = {};
|
1519
1679
|
const headerParameters = {};
|
1520
1680
|
headerParameters['Content-Type'] = 'application/json';
|
1521
|
-
if (this.configuration && this.configuration.
|
1522
|
-
|
1681
|
+
if (this.configuration && this.configuration.accessToken) {
|
1682
|
+
const token = this.configuration.accessToken;
|
1683
|
+
const tokenString = yield token("authentik", []);
|
1684
|
+
if (tokenString) {
|
1685
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1686
|
+
}
|
1523
1687
|
}
|
1524
1688
|
const response = yield this.request({
|
1525
1689
|
path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1550,8 +1714,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1550
1714
|
}
|
1551
1715
|
const queryParameters = {};
|
1552
1716
|
const headerParameters = {};
|
1553
|
-
if (this.configuration && this.configuration.
|
1554
|
-
|
1717
|
+
if (this.configuration && this.configuration.accessToken) {
|
1718
|
+
const token = this.configuration.accessToken;
|
1719
|
+
const tokenString = yield token("authentik", []);
|
1720
|
+
if (tokenString) {
|
1721
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1722
|
+
}
|
1555
1723
|
}
|
1556
1724
|
const response = yield this.request({
|
1557
1725
|
path: `/providers/radius/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1582,8 +1750,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1582
1750
|
const queryParameters = {};
|
1583
1751
|
const headerParameters = {};
|
1584
1752
|
headerParameters['Content-Type'] = 'application/json';
|
1585
|
-
if (this.configuration && this.configuration.
|
1586
|
-
|
1753
|
+
if (this.configuration && this.configuration.accessToken) {
|
1754
|
+
const token = this.configuration.accessToken;
|
1755
|
+
const tokenString = yield token("authentik", []);
|
1756
|
+
if (tokenString) {
|
1757
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1758
|
+
}
|
1587
1759
|
}
|
1588
1760
|
const response = yield this.request({
|
1589
1761
|
path: `/providers/saml/`,
|
@@ -1614,8 +1786,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1614
1786
|
}
|
1615
1787
|
const queryParameters = {};
|
1616
1788
|
const headerParameters = {};
|
1617
|
-
if (this.configuration && this.configuration.
|
1618
|
-
|
1789
|
+
if (this.configuration && this.configuration.accessToken) {
|
1790
|
+
const token = this.configuration.accessToken;
|
1791
|
+
const tokenString = yield token("authentik", []);
|
1792
|
+
if (tokenString) {
|
1793
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1794
|
+
}
|
1619
1795
|
}
|
1620
1796
|
const response = yield this.request({
|
1621
1797
|
path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1650,8 +1826,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1650
1826
|
}
|
1651
1827
|
const queryParameters = {};
|
1652
1828
|
const headerParameters = {};
|
1653
|
-
if (this.configuration && this.configuration.
|
1654
|
-
|
1829
|
+
if (this.configuration && this.configuration.accessToken) {
|
1830
|
+
const token = this.configuration.accessToken;
|
1831
|
+
const tokenString = yield token("authentik", []);
|
1832
|
+
if (tokenString) {
|
1833
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1834
|
+
}
|
1655
1835
|
}
|
1656
1836
|
const consumes = [
|
1657
1837
|
{ contentType: 'multipart/form-data' },
|
@@ -1771,8 +1951,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1771
1951
|
queryParameters['verification_kp'] = requestParameters.verificationKp;
|
1772
1952
|
}
|
1773
1953
|
const headerParameters = {};
|
1774
|
-
if (this.configuration && this.configuration.
|
1775
|
-
|
1954
|
+
if (this.configuration && this.configuration.accessToken) {
|
1955
|
+
const token = this.configuration.accessToken;
|
1956
|
+
const tokenString = yield token("authentik", []);
|
1957
|
+
if (tokenString) {
|
1958
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1959
|
+
}
|
1776
1960
|
}
|
1777
1961
|
const response = yield this.request({
|
1778
1962
|
path: `/providers/saml/`,
|
@@ -1808,8 +1992,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1808
1992
|
queryParameters['force_binding'] = requestParameters.forceBinding;
|
1809
1993
|
}
|
1810
1994
|
const headerParameters = {};
|
1811
|
-
if (this.configuration && this.configuration.
|
1812
|
-
|
1995
|
+
if (this.configuration && this.configuration.accessToken) {
|
1996
|
+
const token = this.configuration.accessToken;
|
1997
|
+
const tokenString = yield token("authentik", []);
|
1998
|
+
if (tokenString) {
|
1999
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2000
|
+
}
|
1813
2001
|
}
|
1814
2002
|
const response = yield this.request({
|
1815
2003
|
path: `/providers/saml/{id}/metadata/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1840,8 +2028,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1840
2028
|
const queryParameters = {};
|
1841
2029
|
const headerParameters = {};
|
1842
2030
|
headerParameters['Content-Type'] = 'application/json';
|
1843
|
-
if (this.configuration && this.configuration.
|
1844
|
-
|
2031
|
+
if (this.configuration && this.configuration.accessToken) {
|
2032
|
+
const token = this.configuration.accessToken;
|
2033
|
+
const tokenString = yield token("authentik", []);
|
2034
|
+
if (tokenString) {
|
2035
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2036
|
+
}
|
1845
2037
|
}
|
1846
2038
|
const response = yield this.request({
|
1847
2039
|
path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1875,8 +2067,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1875
2067
|
queryParameters['for_user'] = requestParameters.forUser;
|
1876
2068
|
}
|
1877
2069
|
const headerParameters = {};
|
1878
|
-
if (this.configuration && this.configuration.
|
1879
|
-
|
2070
|
+
if (this.configuration && this.configuration.accessToken) {
|
2071
|
+
const token = this.configuration.accessToken;
|
2072
|
+
const tokenString = yield token("authentik", []);
|
2073
|
+
if (tokenString) {
|
2074
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2075
|
+
}
|
1880
2076
|
}
|
1881
2077
|
const response = yield this.request({
|
1882
2078
|
path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1906,8 +2102,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1906
2102
|
}
|
1907
2103
|
const queryParameters = {};
|
1908
2104
|
const headerParameters = {};
|
1909
|
-
if (this.configuration && this.configuration.
|
1910
|
-
|
2105
|
+
if (this.configuration && this.configuration.accessToken) {
|
2106
|
+
const token = this.configuration.accessToken;
|
2107
|
+
const tokenString = yield token("authentik", []);
|
2108
|
+
if (tokenString) {
|
2109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2110
|
+
}
|
1911
2111
|
}
|
1912
2112
|
const response = yield this.request({
|
1913
2113
|
path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1941,8 +2141,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1941
2141
|
const queryParameters = {};
|
1942
2142
|
const headerParameters = {};
|
1943
2143
|
headerParameters['Content-Type'] = 'application/json';
|
1944
|
-
if (this.configuration && this.configuration.
|
1945
|
-
|
2144
|
+
if (this.configuration && this.configuration.accessToken) {
|
2145
|
+
const token = this.configuration.accessToken;
|
2146
|
+
const tokenString = yield token("authentik", []);
|
2147
|
+
if (tokenString) {
|
2148
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2149
|
+
}
|
1946
2150
|
}
|
1947
2151
|
const response = yield this.request({
|
1948
2152
|
path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1973,8 +2177,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
1973
2177
|
}
|
1974
2178
|
const queryParameters = {};
|
1975
2179
|
const headerParameters = {};
|
1976
|
-
if (this.configuration && this.configuration.
|
1977
|
-
|
2180
|
+
if (this.configuration && this.configuration.accessToken) {
|
2181
|
+
const token = this.configuration.accessToken;
|
2182
|
+
const tokenString = yield token("authentik", []);
|
2183
|
+
if (tokenString) {
|
2184
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2185
|
+
}
|
1978
2186
|
}
|
1979
2187
|
const response = yield this.request({
|
1980
2188
|
path: `/providers/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2005,8 +2213,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2005
2213
|
const queryParameters = {};
|
2006
2214
|
const headerParameters = {};
|
2007
2215
|
headerParameters['Content-Type'] = 'application/json';
|
2008
|
-
if (this.configuration && this.configuration.
|
2009
|
-
|
2216
|
+
if (this.configuration && this.configuration.accessToken) {
|
2217
|
+
const token = this.configuration.accessToken;
|
2218
|
+
const tokenString = yield token("authentik", []);
|
2219
|
+
if (tokenString) {
|
2220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2221
|
+
}
|
2010
2222
|
}
|
2011
2223
|
const response = yield this.request({
|
2012
2224
|
path: `/providers/scim/`,
|
@@ -2037,8 +2249,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2037
2249
|
}
|
2038
2250
|
const queryParameters = {};
|
2039
2251
|
const headerParameters = {};
|
2040
|
-
if (this.configuration && this.configuration.
|
2041
|
-
|
2252
|
+
if (this.configuration && this.configuration.accessToken) {
|
2253
|
+
const token = this.configuration.accessToken;
|
2254
|
+
const tokenString = yield token("authentik", []);
|
2255
|
+
if (tokenString) {
|
2256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2257
|
+
}
|
2042
2258
|
}
|
2043
2259
|
const response = yield this.request({
|
2044
2260
|
path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2088,8 +2304,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2088
2304
|
queryParameters['url'] = requestParameters.url;
|
2089
2305
|
}
|
2090
2306
|
const headerParameters = {};
|
2091
|
-
if (this.configuration && this.configuration.
|
2092
|
-
|
2307
|
+
if (this.configuration && this.configuration.accessToken) {
|
2308
|
+
const token = this.configuration.accessToken;
|
2309
|
+
const tokenString = yield token("authentik", []);
|
2310
|
+
if (tokenString) {
|
2311
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2312
|
+
}
|
2093
2313
|
}
|
2094
2314
|
const response = yield this.request({
|
2095
2315
|
path: `/providers/scim/`,
|
@@ -2120,8 +2340,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2120
2340
|
const queryParameters = {};
|
2121
2341
|
const headerParameters = {};
|
2122
2342
|
headerParameters['Content-Type'] = 'application/json';
|
2123
|
-
if (this.configuration && this.configuration.
|
2124
|
-
|
2343
|
+
if (this.configuration && this.configuration.accessToken) {
|
2344
|
+
const token = this.configuration.accessToken;
|
2345
|
+
const tokenString = yield token("authentik", []);
|
2346
|
+
if (tokenString) {
|
2347
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2348
|
+
}
|
2125
2349
|
}
|
2126
2350
|
const response = yield this.request({
|
2127
2351
|
path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2152,8 +2376,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2152
2376
|
}
|
2153
2377
|
const queryParameters = {};
|
2154
2378
|
const headerParameters = {};
|
2155
|
-
if (this.configuration && this.configuration.
|
2156
|
-
|
2379
|
+
if (this.configuration && this.configuration.accessToken) {
|
2380
|
+
const token = this.configuration.accessToken;
|
2381
|
+
const tokenString = yield token("authentik", []);
|
2382
|
+
if (tokenString) {
|
2383
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2384
|
+
}
|
2157
2385
|
}
|
2158
2386
|
const response = yield this.request({
|
2159
2387
|
path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2183,8 +2411,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2183
2411
|
}
|
2184
2412
|
const queryParameters = {};
|
2185
2413
|
const headerParameters = {};
|
2186
|
-
if (this.configuration && this.configuration.
|
2187
|
-
|
2414
|
+
if (this.configuration && this.configuration.accessToken) {
|
2415
|
+
const token = this.configuration.accessToken;
|
2416
|
+
const tokenString = yield token("authentik", []);
|
2417
|
+
if (tokenString) {
|
2418
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2419
|
+
}
|
2188
2420
|
}
|
2189
2421
|
const response = yield this.request({
|
2190
2422
|
path: `/providers/scim/{id}/sync_status/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2218,8 +2450,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2218
2450
|
const queryParameters = {};
|
2219
2451
|
const headerParameters = {};
|
2220
2452
|
headerParameters['Content-Type'] = 'application/json';
|
2221
|
-
if (this.configuration && this.configuration.
|
2222
|
-
|
2453
|
+
if (this.configuration && this.configuration.accessToken) {
|
2454
|
+
const token = this.configuration.accessToken;
|
2455
|
+
const tokenString = yield token("authentik", []);
|
2456
|
+
if (tokenString) {
|
2457
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2458
|
+
}
|
2223
2459
|
}
|
2224
2460
|
const response = yield this.request({
|
2225
2461
|
path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2250,8 +2486,12 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
2250
2486
|
}
|
2251
2487
|
const queryParameters = {};
|
2252
2488
|
const headerParameters = {};
|
2253
|
-
if (this.configuration && this.configuration.
|
2254
|
-
|
2489
|
+
if (this.configuration && this.configuration.accessToken) {
|
2490
|
+
const token = this.configuration.accessToken;
|
2491
|
+
const tokenString = yield token("authentik", []);
|
2492
|
+
if (tokenString) {
|
2493
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2494
|
+
}
|
2255
2495
|
}
|
2256
2496
|
const response = yield this.request({
|
2257
2497
|
path: `/providers/scim/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|