-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathidentity-providers.d.ts
711 lines (709 loc) · 31.5 KB
/
identity-providers.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
import './auth-types-PkN9CAF_.js';
type BaseIDP = {
/** Indicates whether the IdP is available for use. */
active?: boolean;
clockToleranceSec?: number;
/** When the flag is true, new users should be created when logging in for the first time. */
createNewUsersOnLogin?: boolean;
/** The timestamp for when the IdP was created. */
created?: string;
description?: string;
/** The unique identifier for the IdP. */
id?: string;
/** Indicates the type of connection with the IdP, either interactive login or a machine to machine connection. */
interactive?: boolean;
/** The timestamp for when the IdP was last updated. */
lastUpdated?: string;
meta?: unknown;
/** Direct the user on logout to a specific URI. */
postLogoutRedirectUri?: string;
/** The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `SAML`, `jwtAuth`, and `qsefw-local-bearer-token`. */
protocol?: IDPProtocol;
/** The identity provider to be used. If protocol is `OIDC`, the valid values are `auth0`, `okta`, `generic`, `salesforce`, `keycloak`, `adfs`, and `azureAD`. If protocol is `jwtAuth`, the valid value is `external`. */
provider?: IDPProvider;
/** The tenant identifiers associated with the given IdP. */
tenantIds?: string[];
};
type CertificateInfo = {
/** The X.509 certificate for validating signed SAML responses. */
certificate: string;
/** Indicates whether the certificate is used for encryption. */
encryption?: boolean;
/** Given name for this certificate. */
name?: string;
/** Indicates whether the certificate is used for the signature. */
signature?: boolean;
};
/**
* Payload for creating an identity provider using JWT authentication.
*/
type CreateJWTAuthPayload = {
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
clockToleranceSec?: number;
description?: string;
/** Required IdP configurations. */
options: {
/** The JWT issuer. */
issuer: string;
/** Keys for verifying JWTs. Limited to 1 key per identity provider. */
staticKeys: {
/** Key ID used to sign the JWTs. */
kid: string;
/** Pem-encoded public key for verifying the JWTs. */
pem: string;
}[];
};
/** The protocol to be used for communicating with the identity provider. */
protocol: "jwtAuth";
/** The identity provider to be used. */
provider: "external";
/** The tenant identifiers that map to the given IdP. */
tenantIds?: string[];
};
/**
* Payload for creating an OIDC-compatible identity provider.
*/
type CreateOIDCPayload = {
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
clockToleranceSec?: number;
/** Tells the consumer of the IdP that new users should be created on login if they don't exist. */
createNewUsersOnLogin?: boolean;
description?: string;
/** Indicates whether the IdP is meant for interactive login. */
interactive: boolean;
/** Required OIDC configurations for non-interactive IdPs and interactive IdPs with `skipVerify` flag enabled. */
options?: {
/** Only clients with IDs in this list will be allowed API access. A blank list or empty value means any client IDs authenticated against the IdP will be allowed access. */
allowedClientIds?: string[];
/** Allows for setting audience in access tokens. */
audience?: string;
/** Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping: ClaimsMappingNonInteractive;
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). Required if openid_configuration is not given. */
discoveryUrl?: string;
/** OpenID configuration */
openid_configuration?: OpenIDConfiguration;
/** The realm identifier for the IdP. */
realm?: string;
};
/** Required OIDC configurations for interactive IdPs that require verification. */
pendingOptions?: {
/** When true, the `offline_access` scope will not be requested from the IdP where applicable. */
blockOfflineAccessScope?: boolean;
/** Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping: ClaimsMappingInteractive;
/** The client identifier used as part of authenticating an interactive identity provider. */
clientId: string;
/** The client secret used as part of authenticating an interactive identity provider. */
clientSecret: string;
/** A decrypting key used to decrypt OIDC encrypted assertions */
decryptingKey?: DecryptingKey;
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). Required if openid_configuration is not given. */
discoveryUrl?: string;
/** Only ADFS and AzureAD IdPs can set this property. For ADFS and AzureAD, it defaults to false. For other IdPs, it defaults to undefined. */
emailVerifiedAlwaysTrue?: boolean;
/** The algorithm used to sign the ID token. The default algorithm is RS256. */
idTokenSignatureAlg?: "RS256" | "RS512";
/** OpenID configuration */
openid_configuration?: OpenIDConfiguration;
/** The realm identifier for the IdP. */
realm?: string;
/** Scope which will be sent along with token requests to the IdP. Scopes should be space delimited. Will default to certain values depending on the IdP provider. */
scope?: string;
/** If true, will use the claims from the ID token. By default it is set to true for ADFS and AzureAD. */
useClaimsFromIdToken?: boolean;
};
/** Direct the user on logout to a specific URI. */
postLogoutRedirectUri?: string;
/** The protocol to be used for communicating with the identity provider. */
protocol: "OIDC";
/** The identity provider to be used. */
provider: "auth0" | "okta" | "generic" | "salesforce" | "keycloak" | "adfs" | "azureAD";
/** If set to `true`, skips IdP verification process and assumes the IdP is verified. */
skipVerify?: boolean;
/** The tenant identifiers that map to the given IdP. */
tenantIds?: string[];
};
/**
* Payload for creating a SAML compatible identity provider.
*/
type CreateSAMLPayload = {
/** There can be clock skew between the IdP and Qlik's login server. In these cases, a tolerance can be set. */
clockToleranceSec?: number;
/** Tells the consumer of the IdP that new users should be created on login if they don't exist. */
createNewUsersOnLogin?: boolean;
description?: string;
/** Indicates whether the IdP is meant for interactive login. Must be true for SAML IdPs. */
interactive: boolean;
/** Required SAML configurations for IdPs with `skipVerify` flag enabled. */
options?: {
/** Toggle to allow IdP initated login by the SAML IdP. */
allowIdpInitiatedLogin?: boolean;
/** The certificates used for validating signed responses. Required if metadata is not provided. */
certificates?: CertificateInfo[];
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping: ClaimsMappingSAML;
/** The entity ID for the SAML IdP. Required if metadata is not provided. */
entityId?: string;
/** Metadata for the SAML IdP. Required if individual SAML parameters are not provided. */
metadata?: {
/** The IDP metadata XML in base64-encoded format. */
raw: string;
};
/** The name identifier format that will be requested from the identity provider. */
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
/** The sign on URL for the SAML IdP. Required if metadata is not provided. */
signOnUrl?: string;
};
/** Required configurations for SAML IdPs that require verification. */
pendingOptions?: {
/** Toggle to allow IdP initated login by the SAML IdP. */
allowIdpInitiatedLogin?: boolean;
/** The certificates used for validating signed responses. Required if metadata is not provided. */
certificates?: CertificateInfo[];
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping: ClaimsMappingSAML;
/** The entity ID for the SAML IdP. Required if metadata is not provided. */
entityId?: string;
/** Metadata for the SAML IdP. Required if individual SAML parameters are not provided. */
metadata?: {
/** The IDP metadata XML in base64-encoded format. */
raw: string;
};
/** The name identifier format that will be requested from the identity provider. */
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
/** The sign on URL for the SAML IdP. Required if metadata is not provided. */
signOnUrl?: string;
};
/** Direct the user on logout to a specific URI. */
postLogoutRedirectUri?: string;
/** The protocol to be used for communicating with the identity provider. */
protocol: "SAML";
/** The identity provider to be used. */
provider: "okta" | "generic" | "adfs" | "azureAD";
/** If set to `true`, skips IdP verification process and assumes the IdP is verified. */
skipVerify?: boolean;
/** The tenant identifiers that map to the given IdP. */
tenantIds?: string[];
};
/**
* An error object.
*/
type Error = {
/** The error code. */
code: string;
/** A human-readable explanation specific to this occurrence of the problem. */
detail?: string;
/** Additional properties relating to the error. */
meta?: unknown;
/** References to the source of the error. */
source?: {
/** The URI query parameter that caused the error. */
parameter?: string;
/** A JSON pointer to the property that caused the error. */
pointer?: string;
};
/** The HTTP status code. */
status?: number;
/** Summary of the problem. */
title: string;
};
/**
* A representation of the errors encountered from the HTTP request.
*/
type Errors = {
errors?: Error[];
};
type IDP = IDPOIDC | IDPSAML | IDPJWTAuth;
type IDPArray = {
/** An array of IdPs. */
data?: IDP[];
/** Contains pagination links. */
links?: Links;
};
/**
* An identity provider for JWT authentication.
*/
type IDPJWTAuth = BaseIDP & {
options?: {
/** The expected JWT issuer */
issuer?: string;
staticKeys?: {
/** Key ID used to sign the JWTs. */
kid?: string;
/** Pem-encoded public key for verifying the JWTs. */
pem?: string;
}[];
};
};
type IDPMeta = {
/** A link to direct you to where you can upgrade your trial or manage your subscriptions. Only available if the default identity provider is used (no custom interactive identity providers are active). */
upgradeSubscriptionLink?: string;
/** A link to direct you to where you can manage your Qlik account. Only available if the default identity provider is used (no custom interactive identity providers are active). */
userPortalLink?: string;
};
/**
* An OIDC-compliant identity provider.
*/
type IDPOIDC = BaseIDP & {
options?: IDPOIDCOptions;
pendingOptions?: IDPOIDCOptions;
pendingResult?: PendingResult;
/** The state of pendingOptions. This represents the latest IdP test result. */
pendingState?: "verified" | "pending" | "error";
};
type IDPOIDCOptions = {
/** If true, the `offline_access` scope will not be requested from the IdP, where applicable. */
blockOfflineAccessScope?: boolean;
/** Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping?: ClaimsMappingInteractive;
/** The client identifier used as part of authenticating an interactive identity provider. */
clientId?: string;
/** The client secret used as part of authenticating an interactive identity provider. */
clientSecret?: string;
/** A decrypting key used to decrypt OIDC encrypted assertions */
decryptingKey?: DecryptingKey;
/** The OpenID configuration endpoint. (Ex: https://<domain>/.well-known/openid-configuration). */
discoveryUrl?: string;
/** Determines if email_verified should be always true. This field is only used in ADFS and AzureAD IdPs. */
emailVerifiedAlwaysTrue?: boolean;
/** This field is only used in Qlik Sense Enterprise Client-Managed IdPs. */
issuer?: string;
/** OpenID configuration */
openid_configuration?: OpenIDConfiguration;
/** The realm identifier for the IdP. */
realm?: string;
/** Scope that will be sent along with token requests to the IdP. */
scope?: string;
};
type IDPPatchSchema = PatchOIDCPayload[] | PatchSAMLPayload[] | PatchJWTAuthPayload[];
type IDPPostSchema = CreateOIDCPayload | CreateJWTAuthPayload | CreateSAMLPayload;
/**
* The protocol to be used for communicating with the identity provider. Valid values are `OIDC`, `SAML`, `jwtAuth`, and `qsefw-local-bearer-token`.
*/
type IDPProtocol = "OIDC" | "SAML" | "jwtAuth" | "qsefw-local-bearer-token";
/**
* The identity provider to be used. If protocol is `OIDC`, the valid values are `auth0`, `okta`, `generic`, `salesforce`, `keycloak`, `adfs`, and `azureAD`. If protocol is `jwtAuth`, the valid value is `external`.
*/
type IDPProvider = "auth0" | "okta" | "qlik" | "generic" | "salesforce" | "keycloak" | "adfs" | "external" | "azureAD";
/**
* A SAML-compliant identity provider.
*/
type IDPSAML = BaseIDP & {
options?: IDPSAMLOptions;
pendingOptions?: IDPSAMLOptions;
pendingResult?: PendingResult;
/** The state of pendingOptions. This represents the latest IdP test result. */
pendingState?: "verified" | "pending" | "error";
};
type IDPSAMLOptions = {
/** Toggle to allow IdP initated login by the SAML IdP. */
allowIdpInitiatedLogin?: boolean;
/** The certificates used for validating signed responses. */
certificates?: CertificateInfo[];
/** Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from. */
claimsMapping?: ClaimsMappingSAML;
/** The entity URL for the SAML IdP. */
entityId?: string;
/** The name identifier format that will be requested from the identity provider. */
nameIdFormat?: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
/** The sign on URL for the SAML IdP. */
signOnUrl?: string;
/** The reference ID of the chosen signing key pair. */
signingKeySelectedRefId?: string;
/** Set of certificates used to sign SAMLRequest payloads. Not present in `pendingOptions`. */
signingKeys?: SigningKey[];
};
type IDPsStatus = {
/** The number of active interactive IdPs. */
active_interactive_idps_count?: number;
/** A list of IdP metadata. */
idps_metadata?: {
/** Indicates whether the IdP is available for use. */
active?: boolean;
/** Indicates whether the IdP is meant for interactive login. */
interactive?: boolean;
/** The identity provider to be used. If protocol is `OIDC`, the valid values are `auth0`, `okta`, `generic`, `salesforce`, `keycloak`, `adfs`, and `azureAD`. If protocol is `jwtAuth`, the valid value is `external`. */
provider?: IDPProvider;
}[];
};
/**
* Contains pagination links.
*/
type Links = {
next?: {
/** Link to the next page of items. */
href?: string;
};
prev?: {
/** Link to the previous page of items. */
href?: string;
};
self?: {
/** Link to the current page of items. */
href?: string;
};
};
/**
* OpenID configuration
*/
type OpenIDConfiguration = {
/** OAuth 2.0 Authorization Endpoint */
authorization_endpoint: string;
/** URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP. */
end_session_endpoint?: string;
/** The introspection endpoint is an OAuth 2.0 endpoint that takes a parameter representing an OAuth 2.0 token and returns a JSON [RFC7159] document representing the meta information. */
introspection_endpoint?: string;
/** OpenID Provider issuer */
issuer: string;
/** URL of the OP's JSON Web Key Set [JWK] document */
jwks_uri: string;
/** OAuth 2.0 Token Endpoint */
token_endpoint: string;
/** URL of the OP's UserInfo Endpoint */
userinfo_endpoint?: string;
};
/**
* A patch request for an identity provider using the `jwtAuth` protocol.
*/
type PatchJWTAuthPayload = {
/** The "operation" to be performed on a given IdP. */
op: "replace";
/** The "path" to the part of the IdP document. */
path?: "/description";
/** The "value" data type is dependent on the path value being used. */
value?: unknown;
};
/**
* A patch request for an identity provider using the `OIDC` protocol.
*/
type PatchOIDCPayload = {
/** The "operation" to be performed on a given IdP. Currently supports a custom operation value called "promote-options" that allows the test configuration to be promoted to the current configuration used for login. */
op: "replace" | "promote-options";
/** The "path" to the part of the IdP document. */
path?: "/active" | "/description" | "/meta" | "/options" | "/options/realm" | "/options/discoveryUrl" | "/options/claimsMapping" | "/pendingOptions" | "/pendingOptions/realm" | "/pendingOptions/discoveryUrl" | "/pendingOptions/clientId" | "/pendingOptions/clientSecret" | "/pendingOptions/emailVerifiedAlwaysTrue" | "/pendingOptions/claimsMapping" | "/postLogoutRedirectUri" | "/clockToleranceSec" | "/pendingOptions/idTokenSignatureAlg" | "/pendingOptions/decryptingKey";
/** The "value" data type is dependent on the path value being used. */
value?: unknown;
};
/**
* A patch request for an identity provider using the `SAML` protocol. Supports a custom operation value called `promote-options` that allows the test configuration (`pendingOptions`) to be promoted to the live configuration (`options`) used for login.'
*/
type PatchSAMLPayload = {
/** The "operation" to be performed on a given IdP. */
op: "replace" | "promote-options";
/** The "path" to the part of the IdP document. */
path?: "/active" | "/description" | "/pendingOptions" | "/pendingOptions/nameIdFormat" | "/pendingOptions/allowIdpInitiatedLogin" | "/pendingOptions/entityId" | "/pendingOptions/signOnUrl" | "/pendingOptions/metadata" | "/pendingOptions/certificates" | "/pendingOptions/claimsMapping" | "/postLogoutRedirectUri" | "/clockToleranceSec";
/** The "value" data type is dependent on the path value being used. */
value?: unknown;
};
type PendingResult = {
/** A unique readable error message based on the error that has occurred. */
error?: string;
/** The claims retrieved from the external IdP. */
idpClaims?: unknown;
oauth2Error?: {
/** An error code to identity the authentication error. */
error: string;
/** An optional human-readable description for the given error code. */
errorDescription?: string;
/** An optional URI that includes additional information about the given error. */
errorURI?: string;
};
/** The protocol used to communicate with the IdP during the test flow. */
protocol?: "OIDC" | "SAML";
/** The resultant claims based on the claims received from the external IdP. */
resultantClaims?: unknown;
/** The timestamp for when the test was started for an IdP configuration. This field is only available during lifespan of the test. */
started?: string;
/** The status of the IdP configuration being tested. */
status: "success" | "pending" | "error" | "claimsError" | "callbackError" | "tokenError" | "protocolError" | "networkError" | "configChangedDuringTestError";
};
type SigningKey = {
/** The certificate to be uploaded to the identity provider for verifying SAML requests. */
certificate?: string;
/** The reference ID for choosing this key pair. */
refId?: string;
};
/**
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
*/
type ClaimsMappingInteractive = {
/** A list of JSON pointers used to map the user's client ID. */
client_id?: string[];
/** A list of JSON pointers used to map the user's email. */
email?: string[];
/** A list of JSON pointers used to map the user's email_verified claim. */
email_verified?: string[];
/** A list of JSON pointers used to map the user's groups. */
groups?: string[];
/** A list of JSON pointers used to map the user's locale. */
locale?: string[];
/** A list of JSON pointers used to map the user's name. */
name?: string[];
/** A list of JSON pointers used to map the user's picture. */
picture?: string[];
/** A list of JSON pointers used to map the user's subject. */
sub?: string[];
/** A list of JSON pointers used to map the user's zoneinfo. */
zoneinfo?: string[];
};
/**
* Mappings from claim name to an array of JSON pointers that point to locations in the claims from the IdP to retrieve the value from.
*/
type ClaimsMappingNonInteractive = {
/** A list of JSON pointers used to map the user's client ID. */
client_id?: string[];
/** A list of JSON pointers used to map the user's subject. */
sub?: string[];
};
/**
* Mappings from claim name to an array of SAML attribute names that point to locations in the claims from the IdP to retrieve the value from.
*/
type ClaimsMappingSAML = {
/** A list of SAML attributes used to map the user's email. */
email: string[];
/** A list of SAML attributes used to map the user's groups. */
groups: string[];
/** A list of SAML attributes used to map the user's name. */
name: string[];
/** A list of SAML attributes used to map the user's picture. */
picture: string[];
/** A list of SAML attributes used to map the user's subject. */
sub: string[];
};
/**
* A decrypting key used to decrypt OIDC encrypted assertions
*/
type DecryptingKey = {
/** The key's certificate in pem format */
certificate?: string;
/** The timestamp for when the decrypting key was created. */
createdAt?: string;
/** The user id of the user who created the decrypting key */
createdBy?: string;
/** The public key in jwk format */
jwks?: string;
/** The id of the decrypting key */
keyId?: string;
/** The algorithm size of the decrypting key */
keySize: number;
/** The algorithm type of the decrypting key */
keyType: string;
/** The public key in pem format */
publicKey?: string;
};
/**
* This endpoint retrieves any IdPs registered on the tenant.
*
* @param query an object with query parameters
* @throws GetIdpsHttpError
*/
declare const getIdps: (query: {
/** If provided, filters the results by the active field. */
active?: boolean;
/** The number of IdP entries to retrieve. */
limit?: number;
/** The next page cursor. */
next?: string;
/** The previous page cursor. */
prev?: string;
}, options?: ApiCallOptions) => Promise<GetIdpsHttpResponse>;
type GetIdpsHttpResponse = {
data: IDPArray;
headers: Headers;
status: 200;
prev?: (options?: ApiCallOptions) => Promise<GetIdpsHttpResponse>;
next?: (options?: ApiCallOptions) => Promise<GetIdpsHttpResponse>;
};
type GetIdpsHttpError = {
data: Errors;
headers: Headers;
status: 404;
};
/**
* Creates a new IdP on a tenant. Requesting user must be assigned the `TenantAdmin` role. For non-interactive IdPs (e.g. JWT), IdP must be created by sending `options` payload. For interactive IdPs (e.g. SAML or OIDC), send `pendingOptions` payload to require the interactive verification step; or send `options` payload with `skipVerify` set to `true` to skip validation step and make IdP immediately available.
*
* @param body an object with the body content
* @throws CreateIdpHttpError
*/
declare const createIdp: (body: IDPPostSchema, options?: ApiCallOptions) => Promise<CreateIdpHttpResponse>;
type CreateIdpHttpResponse = {
data: IDP;
headers: Headers;
status: 201;
};
type CreateIdpHttpError = {
data: Errors;
headers: Headers;
status: 400 | 403;
};
/**
* Returns IdP configuration metadata supported on the tenant. Clients can use this information to programmatically configure their interactions with Qlik Cloud.
*
* @throws GetIdpWellKnownMetaDataHttpError
*/
declare const getIdpWellKnownMetaData: (options?: ApiCallOptions) => Promise<GetIdpWellKnownMetaDataHttpResponse>;
type GetIdpWellKnownMetaDataHttpResponse = {
data: unknown;
headers: Headers;
status: 200;
};
type GetIdpWellKnownMetaDataHttpError = {
data: unknown;
headers: Headers;
status: number;
};
/**
* Retrieves default IdP metadata when no interactive IdP is enabled.
*
* @throws GetMyIdpMetaHttpError
*/
declare const getMyIdpMeta: (options?: ApiCallOptions) => Promise<GetMyIdpMetaHttpResponse>;
type GetMyIdpMetaHttpResponse = {
data: IDPMeta;
headers: Headers;
status: 200;
};
type GetMyIdpMetaHttpError = {
data: Errors;
headers: Headers;
status: 403 | 404 | 500;
};
/**
* Retrieves the status of all IdP configurations. Requires `TenantAdmin` role.
*
* @throws GetIdpStatusesHttpError
*/
declare const getIdpStatuses: (options?: ApiCallOptions) => Promise<GetIdpStatusesHttpResponse>;
type GetIdpStatusesHttpResponse = {
data: IDPsStatus;
headers: Headers;
status: 200;
};
type GetIdpStatusesHttpError = {
data: Errors;
headers: Headers;
status: 403 | 404 | 500;
};
/**
* Deletes an identity provider. Requesting user must be assigned the `TenantAdmin` role.
*
* @param id The identity provider ID.
* @throws DeleteIdpHttpError
*/
declare const deleteIdp: (id: string, options?: ApiCallOptions) => Promise<DeleteIdpHttpResponse>;
type DeleteIdpHttpResponse = {
data: void;
headers: Headers;
status: 204;
};
type DeleteIdpHttpError = {
data: Errors;
headers: Headers;
status: 400 | 404;
};
/**
* Retrieves a specific IdP. Requesting user must be assigned the `TenantAdmin` role.
*
* @param id The identity provider ID.
* @throws GetIdpHttpError
*/
declare const getIdp: (id: string, options?: ApiCallOptions) => Promise<GetIdpHttpResponse>;
type GetIdpHttpResponse = {
data: IDP;
headers: Headers;
status: 200;
};
type GetIdpHttpError = {
data: Errors;
headers: Headers;
status: 401 | 404;
};
/**
* Updates the configuration of an IdP. Requesting user must be assigned the `TenantAdmin` role. Partial failure is treated as complete failure and returns an error.
*
* @param id The identity provider ID.
* @param body an object with the body content
* @throws PatchIdpHttpError
*/
declare const patchIdp: (id: string, body: IDPPatchSchema, options?: ApiCallOptions) => Promise<PatchIdpHttpResponse>;
type PatchIdpHttpResponse = {
data: void;
headers: Headers;
status: 204;
};
type PatchIdpHttpError = {
data: Errors;
headers: Headers;
status: 400 | 401 | 403 | 404 | 412 | 500;
};
/**
* Clears the cache for identity-providers api requests.
*/
declare function clearCache(): void;
interface IdentityProvidersAPI {
/**
* This endpoint retrieves any IdPs registered on the tenant.
*
* @param query an object with query parameters
* @throws GetIdpsHttpError
*/
getIdps: typeof getIdps;
/**
* Creates a new IdP on a tenant. Requesting user must be assigned the `TenantAdmin` role. For non-interactive IdPs (e.g. JWT), IdP must be created by sending `options` payload. For interactive IdPs (e.g. SAML or OIDC), send `pendingOptions` payload to require the interactive verification step; or send `options` payload with `skipVerify` set to `true` to skip validation step and make IdP immediately available.
*
* @param body an object with the body content
* @throws CreateIdpHttpError
*/
createIdp: typeof createIdp;
/**
* Returns IdP configuration metadata supported on the tenant. Clients can use this information to programmatically configure their interactions with Qlik Cloud.
*
* @throws GetIdpWellKnownMetaDataHttpError
*/
getIdpWellKnownMetaData: typeof getIdpWellKnownMetaData;
/**
* Retrieves default IdP metadata when no interactive IdP is enabled.
*
* @throws GetMyIdpMetaHttpError
*/
getMyIdpMeta: typeof getMyIdpMeta;
/**
* Retrieves the status of all IdP configurations. Requires `TenantAdmin` role.
*
* @throws GetIdpStatusesHttpError
*/
getIdpStatuses: typeof getIdpStatuses;
/**
* Deletes an identity provider. Requesting user must be assigned the `TenantAdmin` role.
*
* @param id The identity provider ID.
* @throws DeleteIdpHttpError
*/
deleteIdp: typeof deleteIdp;
/**
* Retrieves a specific IdP. Requesting user must be assigned the `TenantAdmin` role.
*
* @param id The identity provider ID.
* @throws GetIdpHttpError
*/
getIdp: typeof getIdp;
/**
* Updates the configuration of an IdP. Requesting user must be assigned the `TenantAdmin` role. Partial failure is treated as complete failure and returns an error.
*
* @param id The identity provider ID.
* @param body an object with the body content
* @throws PatchIdpHttpError
*/
patchIdp: typeof patchIdp;
/**
* Clears the cache for identity-providers api requests.
*/
clearCache: typeof clearCache;
}
/**
* Functions for the identity-providers api
*/
declare const identityProvidersExport: IdentityProvidersAPI;
export { type BaseIDP, type CertificateInfo, type ClaimsMappingInteractive, type ClaimsMappingNonInteractive, type ClaimsMappingSAML, type CreateIdpHttpError, type CreateIdpHttpResponse, type CreateJWTAuthPayload, type CreateOIDCPayload, type CreateSAMLPayload, type DecryptingKey, type DeleteIdpHttpError, type DeleteIdpHttpResponse, type Error, type Errors, type GetIdpHttpError, type GetIdpHttpResponse, type GetIdpStatusesHttpError, type GetIdpStatusesHttpResponse, type GetIdpWellKnownMetaDataHttpError, type GetIdpWellKnownMetaDataHttpResponse, type GetIdpsHttpError, type GetIdpsHttpResponse, type GetMyIdpMetaHttpError, type GetMyIdpMetaHttpResponse, type IDP, type IDPArray, type IDPJWTAuth, type IDPMeta, type IDPOIDC, type IDPOIDCOptions, type IDPPatchSchema, type IDPPostSchema, type IDPProtocol, type IDPProvider, type IDPSAML, type IDPSAMLOptions, type IDPsStatus, type IdentityProvidersAPI, type Links, type OpenIDConfiguration, type PatchIdpHttpError, type PatchIdpHttpResponse, type PatchJWTAuthPayload, type PatchOIDCPayload, type PatchSAMLPayload, type PendingResult, type SigningKey, clearCache, createIdp, identityProvidersExport as default, deleteIdp, getIdp, getIdpStatuses, getIdpWellKnownMetaData, getIdps, getMyIdpMeta, patchIdp };