@boxyhq/saml-jackson 1.33.0 → 1.33.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controller/oauth/oidc-client.d.ts +3 -3
- package/dist/controller/oauth/oidc-client.js +2 -1
- package/dist/controller/oauth/oidc-client.js.map +1 -1
- package/dist/controller/oauth/oidc-issuer.d.ts +2 -0
- package/dist/controller/oauth/oidc-issuer.js +25 -0
- package/dist/controller/oauth/oidc-issuer.js.map +1 -0
- package/dist/controller/oauth.js +36 -35
- package/dist/controller/oauth.js.map +1 -1
- package/dist/controller/sso-handler.js +1 -1
- package/dist/controller/sso-handler.js.map +1 -1
- package/dist/controller/utils.d.ts +5 -3
- package/dist/controller/utils.js +10 -2
- package/dist/controller/utils.js.map +1 -1
- package/dist/src/controller/admin.d.ts +27 -0
- package/dist/src/controller/admin.js +60 -0
- package/dist/src/controller/admin.js.map +1 -0
- package/dist/src/controller/analytics.d.ts +16 -0
- package/dist/src/controller/analytics.js +79 -0
- package/dist/src/controller/analytics.js.map +1 -0
- package/dist/src/controller/api.d.ts +557 -0
- package/dist/src/controller/api.js +806 -0
- package/dist/src/controller/api.js.map +1 -0
- package/dist/src/controller/connection/oidc.d.ts +7 -0
- package/dist/src/controller/connection/oidc.js +181 -0
- package/dist/src/controller/connection/oidc.js.map +1 -0
- package/dist/src/controller/connection/saml.d.ts +7 -0
- package/dist/src/controller/connection/saml.js +250 -0
- package/dist/src/controller/connection/saml.js.map +1 -0
- package/dist/src/controller/error.d.ts +10 -0
- package/dist/src/controller/error.js +13 -0
- package/dist/src/controller/error.js.map +1 -0
- package/dist/src/controller/health-check.d.ts +11 -0
- package/dist/src/controller/health-check.js +51 -0
- package/dist/src/controller/health-check.js.map +1 -0
- package/dist/src/controller/logout.d.ts +18 -0
- package/dist/src/controller/logout.js +132 -0
- package/dist/src/controller/logout.js.map +1 -0
- package/dist/src/controller/oauth/allowed.d.ts +1 -0
- package/dist/src/controller/oauth/allowed.js +30 -0
- package/dist/src/controller/oauth/allowed.js.map +1 -0
- package/dist/src/controller/oauth/code-verifier.d.ts +1 -0
- package/dist/src/controller/oauth/code-verifier.js +8 -0
- package/dist/src/controller/oauth/code-verifier.js.map +1 -0
- package/dist/src/controller/oauth/oidc-client.d.ts +12 -0
- package/dist/src/controller/oauth/oidc-client.js +89 -0
- package/dist/src/controller/oauth/oidc-client.js.map +1 -0
- package/dist/src/controller/oauth/redirect.d.ts +1 -0
- package/dist/src/controller/oauth/redirect.js +13 -0
- package/dist/src/controller/oauth/redirect.js.map +1 -0
- package/dist/src/controller/oauth.d.ts +142 -0
- package/dist/src/controller/oauth.js +1112 -0
- package/dist/src/controller/oauth.js.map +1 -0
- package/dist/src/controller/oidc-discovery.d.ts +22 -0
- package/dist/src/controller/oidc-discovery.js +47 -0
- package/dist/src/controller/oidc-discovery.js.map +1 -0
- package/dist/src/controller/setup-link.d.ts +307 -0
- package/dist/src/controller/setup-link.js +462 -0
- package/dist/src/controller/setup-link.js.map +1 -0
- package/dist/src/controller/sp-config.d.ts +22 -0
- package/dist/src/controller/sp-config.js +89 -0
- package/dist/src/controller/sp-config.js.map +1 -0
- package/dist/src/controller/sso-handler.d.ts +66 -0
- package/dist/src/controller/sso-handler.js +306 -0
- package/dist/src/controller/sso-handler.js.map +1 -0
- package/dist/src/controller/utils.d.ts +84 -0
- package/dist/src/controller/utils.js +328 -0
- package/dist/src/controller/utils.js.map +1 -0
- package/dist/src/cron/lock.d.ts +18 -0
- package/dist/src/cron/lock.js +98 -0
- package/dist/src/cron/lock.js.map +1 -0
- package/dist/src/db/db.d.ts +5 -0
- package/dist/src/db/db.js +178 -0
- package/dist/src/db/db.js.map +1 -0
- package/dist/src/db/defaultDb.d.ts +2 -0
- package/dist/src/db/defaultDb.js +18 -0
- package/dist/src/db/defaultDb.js.map +1 -0
- package/dist/src/db/dynamoDb.d.ts +19 -0
- package/dist/src/db/dynamoDb.js +320 -0
- package/dist/src/db/dynamoDb.js.map +1 -0
- package/dist/src/db/encrypter.d.ts +3 -0
- package/dist/src/db/encrypter.js +22 -0
- package/dist/src/db/encrypter.js.map +1 -0
- package/dist/src/db/mem.d.ts +23 -0
- package/dist/src/db/mem.js +186 -0
- package/dist/src/db/mem.js.map +1 -0
- package/dist/src/db/mongo.d.ts +22 -0
- package/dist/src/db/mongo.js +177 -0
- package/dist/src/db/mongo.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.d.ts +5 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.js +32 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/planetscale/entity/JacksonStore.js +63 -0
- package/dist/src/db/planetscale/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.js +27 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/redis.d.ts +18 -0
- package/dist/src/db/redis.js +214 -0
- package/dist/src/db/redis.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.js +63 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mssql.d.ts +1 -0
- package/dist/src/db/sql/mssql.js +44 -0
- package/dist/src/db/sql/mssql.js.map +1 -0
- package/dist/src/db/sql/sql.d.ts +32 -0
- package/dist/src/db/sql/sql.js +318 -0
- package/dist/src/db/sql/sql.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/store.d.ts +5 -0
- package/dist/src/db/store.js +65 -0
- package/dist/src/db/store.js.map +1 -0
- package/dist/src/db/utils.d.ts +16 -0
- package/dist/src/db/utils.js +28 -0
- package/dist/src/db/utils.js.map +1 -0
- package/dist/src/directory-sync/batch-events/queue.d.ts +40 -0
- package/dist/src/directory-sync/batch-events/queue.js +225 -0
- package/dist/src/directory-sync/batch-events/queue.js.map +1 -0
- package/dist/src/directory-sync/index.d.ts +27 -0
- package/dist/src/directory-sync/index.js +97 -0
- package/dist/src/directory-sync/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/api.d.ts +36 -0
- package/dist/src/directory-sync/non-scim/google/api.js +143 -0
- package/dist/src/directory-sync/non-scim/google/api.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/index.d.ts +12 -0
- package/dist/src/directory-sync/non-scim/google/index.js +10 -0
- package/dist/src/directory-sync/non-scim/google/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/oauth.d.ts +27 -0
- package/dist/src/directory-sync/non-scim/google/oauth.js +105 -0
- package/dist/src/directory-sync/non-scim/google/oauth.js.map +1 -0
- package/dist/src/directory-sync/non-scim/index.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/index.js +85 -0
- package/dist/src/directory-sync/non-scim/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.d.ts +23 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.js +105 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncGroups.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/syncGroups.js +120 -0
- package/dist/src/directory-sync/non-scim/syncGroups.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncUsers.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/syncUsers.js +120 -0
- package/dist/src/directory-sync/non-scim/syncUsers.js.map +1 -0
- package/dist/src/directory-sync/non-scim/utils.d.ts +36 -0
- package/dist/src/directory-sync/non-scim/utils.js +109 -0
- package/dist/src/directory-sync/non-scim/utils.js.map +1 -0
- package/dist/src/directory-sync/request.d.ts +14 -0
- package/dist/src/directory-sync/request.js +29 -0
- package/dist/src/directory-sync/request.js.map +1 -0
- package/dist/src/directory-sync/scim/Base.d.ts +12 -0
- package/dist/src/directory-sync/scim/Base.js +23 -0
- package/dist/src/directory-sync/scim/Base.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.d.ts +343 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.js +580 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.d.ts +28 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.js +252 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.d.ts +25 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.js +193 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.js.map +1 -0
- package/dist/src/directory-sync/scim/Groups.d.ts +166 -0
- package/dist/src/directory-sync/scim/Groups.js +348 -0
- package/dist/src/directory-sync/scim/Groups.js.map +1 -0
- package/dist/src/directory-sync/scim/Users.d.ts +99 -0
- package/dist/src/directory-sync/scim/Users.js +215 -0
- package/dist/src/directory-sync/scim/Users.js.map +1 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.d.ts +101 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.js +165 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.js.map +1 -0
- package/dist/src/directory-sync/scim/transform.d.ts +6 -0
- package/dist/src/directory-sync/scim/transform.js +37 -0
- package/dist/src/directory-sync/scim/transform.js.map +1 -0
- package/dist/src/directory-sync/scim/utils.d.ts +33 -0
- package/dist/src/directory-sync/scim/utils.js +129 -0
- package/dist/src/directory-sync/scim/utils.js.map +1 -0
- package/dist/src/directory-sync/types.d.ts +195 -0
- package/dist/src/directory-sync/types.js +10 -0
- package/dist/src/directory-sync/types.js.map +1 -0
- package/dist/src/directory-sync/utils.d.ts +19 -0
- package/dist/src/directory-sync/utils.js +56 -0
- package/dist/src/directory-sync/utils.js.map +1 -0
- package/dist/src/ee/branding/index.d.ts +17 -0
- package/dist/src/ee/branding/index.js +49 -0
- package/dist/src/ee/branding/index.js.map +1 -0
- package/dist/src/ee/common/checkLicense.d.ts +3 -0
- package/dist/src/ee/common/checkLicense.js +23 -0
- package/dist/src/ee/common/checkLicense.js.map +1 -0
- package/dist/src/ee/identity-federation/app.d.ts +328 -0
- package/dist/src/ee/identity-federation/app.js +532 -0
- package/dist/src/ee/identity-federation/app.js.map +1 -0
- package/dist/src/ee/identity-federation/idp-login.d.ts +18 -0
- package/dist/src/ee/identity-federation/idp-login.js +98 -0
- package/dist/src/ee/identity-federation/idp-login.js.map +1 -0
- package/dist/src/ee/identity-federation/index.d.ts +15 -0
- package/dist/src/ee/identity-federation/index.js +43 -0
- package/dist/src/ee/identity-federation/index.js.map +1 -0
- package/dist/src/ee/identity-federation/sso.d.ts +24 -0
- package/dist/src/ee/identity-federation/sso.js +124 -0
- package/dist/src/ee/identity-federation/sso.js.map +1 -0
- package/dist/src/ee/identity-federation/types.d.ts +38 -0
- package/dist/src/ee/identity-federation/types.js +2 -0
- package/dist/src/ee/identity-federation/types.js.map +1 -0
- package/dist/src/ee/ory/ory.d.ts +18 -0
- package/dist/src/ee/ory/ory.js +195 -0
- package/dist/src/ee/ory/ory.js.map +1 -0
- package/dist/src/ee/product/index.d.ts +14 -0
- package/dist/src/ee/product/index.js +45 -0
- package/dist/src/ee/product/index.js.map +1 -0
- package/dist/src/event/axios.d.ts +2 -0
- package/dist/src/event/axios.js +27 -0
- package/dist/src/event/axios.js.map +1 -0
- package/dist/src/event/index.d.ts +11 -0
- package/dist/src/event/index.js +53 -0
- package/dist/src/event/index.js.map +1 -0
- package/dist/src/event/types.d.ts +21 -0
- package/dist/src/event/types.js +2 -0
- package/dist/src/event/types.js.map +1 -0
- package/dist/src/event/utils.d.ts +4 -0
- package/dist/src/event/utils.js +33 -0
- package/dist/src/event/utils.js.map +1 -0
- package/dist/src/event/webhook.d.ts +3 -0
- package/dist/src/event/webhook.js +34 -0
- package/dist/src/event/webhook.js.map +1 -0
- package/dist/src/index.d.ts +35 -0
- package/dist/src/index.js +161 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/loadConnection.d.ts +4 -0
- package/dist/src/loadConnection.js +38 -0
- package/dist/src/loadConnection.js.map +1 -0
- package/dist/src/opentelemetry/metrics.d.ts +14 -0
- package/dist/src/opentelemetry/metrics.js +64 -0
- package/dist/src/opentelemetry/metrics.js.map +1 -0
- package/dist/src/saml/claims.d.ts +12 -0
- package/dist/src/saml/claims.js +57 -0
- package/dist/src/saml/claims.js.map +1 -0
- package/dist/src/saml/lib.d.ts +8 -0
- package/dist/src/saml/lib.js +29 -0
- package/dist/src/saml/lib.js.map +1 -0
- package/dist/src/saml/x509.d.ts +9 -0
- package/dist/src/saml/x509.js +93 -0
- package/dist/src/saml/x509.js.map +1 -0
- package/dist/src/sso-traces/index.d.ts +114 -0
- package/dist/src/sso-traces/index.js +229 -0
- package/dist/src/sso-traces/index.js.map +1 -0
- package/dist/src/sso-traces/types.d.ts +44 -0
- package/dist/src/sso-traces/types.js +2 -0
- package/dist/src/sso-traces/types.js.map +1 -0
- package/dist/src/typings.d.ts +540 -0
- package/dist/src/typings.js +5 -0
- package/dist/src/typings.js.map +1 -0
- package/dist/typeorm.d.ts +3 -0
- package/dist/typeorm.js +58 -0
- package/dist/typeorm.js.map +1 -0
- package/dist/typings.d.ts +1 -1
- package/package.json +7 -7
@@ -0,0 +1,557 @@
|
|
1
|
+
import { GetConfigQuery, GetConnectionsQuery, DelConnectionsQuery, IConnectionAPIController, SAMLSSOConnectionWithEncodedMetadata, SAMLSSOConnectionWithRawMetadata, OIDCSSOConnectionWithDiscoveryUrl, OIDCSSOConnectionWithMetadata, SAMLSSORecord, OIDCSSORecord, GetIDPEntityIDBody, UpdateSAMLConnectionParams, UpdateOIDCConnectionParams, GetByProductParams, Index } from '../typings';
|
2
|
+
export declare class ConnectionAPIController implements IConnectionAPIController {
|
3
|
+
private connectionStore;
|
4
|
+
private opts;
|
5
|
+
private eventController;
|
6
|
+
private oryController;
|
7
|
+
constructor({ connectionStore, opts, eventController, oryController }: {
|
8
|
+
connectionStore: any;
|
9
|
+
opts: any;
|
10
|
+
eventController: any;
|
11
|
+
oryController: any;
|
12
|
+
});
|
13
|
+
/**
|
14
|
+
* @swagger
|
15
|
+
* definitions:
|
16
|
+
* Connection:
|
17
|
+
* type: object
|
18
|
+
* example:
|
19
|
+
* {
|
20
|
+
* "idpMetadata": {
|
21
|
+
* "sso": {
|
22
|
+
* "postUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxsso/saml",
|
23
|
+
* "redirectUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxsso/saml"
|
24
|
+
* },
|
25
|
+
* "entityID": "http://www.okta.com/xxxxxxxxxxxxx",
|
26
|
+
* "thumbprint": "Eo+eUi3UM3XIMkFFtdVK3yJ5vO9f7YZdasdasdad",
|
27
|
+
* "loginType": "idp",
|
28
|
+
* "provider": "okta.com"
|
29
|
+
* },
|
30
|
+
* "defaultRedirectUrl": "https://hoppscotch.io/",
|
31
|
+
* "redirectUrl": ["https://hoppscotch.io/"],
|
32
|
+
* "tenant": "hoppscotch.io",
|
33
|
+
* "product": "API Engine",
|
34
|
+
* "name": "Hoppscotch-SP",
|
35
|
+
* "description": "SP for hoppscotch.io",
|
36
|
+
* "clientID": "Xq8AJt3yYAxmXizsCWmUBDRiVP1iTC8Y/otnvFIMitk",
|
37
|
+
* "clientSecret": "00e3e11a3426f97d8000000738300009130cd45419c5943",
|
38
|
+
* "deactivated": false
|
39
|
+
* }
|
40
|
+
* validationErrorsPost:
|
41
|
+
* description: Please provide rawMetadata or encodedRawMetadata | Please provide a defaultRedirectUrl | Please provide redirectUrl | redirectUrl is invalid | Exceeded maximum number of allowed redirect urls | defaultRedirectUrl is invalid | Please provide tenant | Please provide product | Please provide a friendly name | Description should not exceed 100 characters | Strategy: xxxx not supported | Please provide the clientId from OpenID Provider | Please provide the clientSecret from OpenID Provider | Please provide the discoveryUrl for the OpenID Provider
|
42
|
+
*
|
43
|
+
* parameters:
|
44
|
+
* nameParamPost:
|
45
|
+
* name: name
|
46
|
+
* description: Name/identifier for the connection
|
47
|
+
* type: string
|
48
|
+
* in: formData
|
49
|
+
* labelParamPost:
|
50
|
+
* name: label
|
51
|
+
* description: An internal label to identify the connection
|
52
|
+
* type: string
|
53
|
+
* in: formData
|
54
|
+
* descriptionParamPost:
|
55
|
+
* name: description
|
56
|
+
* description: A short description for the connection not more than 100 characters
|
57
|
+
* type: string
|
58
|
+
* in: formData
|
59
|
+
* encodedRawMetadataParamPost:
|
60
|
+
* name: encodedRawMetadata
|
61
|
+
* description: Base64 encoding of the XML metadata
|
62
|
+
* in: formData
|
63
|
+
* type: string
|
64
|
+
* rawMetadataParamPost:
|
65
|
+
* name: rawMetadata
|
66
|
+
* description: Raw XML metadata
|
67
|
+
* in: formData
|
68
|
+
* type: string
|
69
|
+
* metadataUrlParamPost:
|
70
|
+
* name: metadataUrl
|
71
|
+
* description: URL containing raw XML metadata
|
72
|
+
* in: formData
|
73
|
+
* type: string
|
74
|
+
* defaultRedirectUrlParamPost:
|
75
|
+
* name: defaultRedirectUrl
|
76
|
+
* description: The redirect URL to use in the IdP login flow
|
77
|
+
* in: formData
|
78
|
+
* required: true
|
79
|
+
* type: string
|
80
|
+
* redirectUrlParamPost:
|
81
|
+
* name: redirectUrl
|
82
|
+
* description: JSON encoded array containing a list of allowed redirect URLs
|
83
|
+
* in: formData
|
84
|
+
* required: true
|
85
|
+
* type: string
|
86
|
+
* tenantParamPost:
|
87
|
+
* name: tenant
|
88
|
+
* description: Tenant
|
89
|
+
* in: formData
|
90
|
+
* required: true
|
91
|
+
* type: string
|
92
|
+
* productParamPost:
|
93
|
+
* name: product
|
94
|
+
* description: Product
|
95
|
+
* in: formData
|
96
|
+
* required: true
|
97
|
+
* type: string
|
98
|
+
* oidcDiscoveryUrlPost:
|
99
|
+
* name: oidcDiscoveryUrl
|
100
|
+
* description: well-known URL where the OpenID Provider configuration is exposed
|
101
|
+
* in: formData
|
102
|
+
* type: string
|
103
|
+
* oidcMetadataPost:
|
104
|
+
* name: oidcMetadata
|
105
|
+
* description: metadata (JSON) for the OpenID Provider in the absence of discoveryUrl
|
106
|
+
* in: formData
|
107
|
+
* type: string
|
108
|
+
* oidcClientIdPost:
|
109
|
+
* name: oidcClientId
|
110
|
+
* description: clientId of the application set up on the OpenID Provider
|
111
|
+
* in: formData
|
112
|
+
* type: string
|
113
|
+
* oidcClientSecretPost:
|
114
|
+
* name: oidcClientSecret
|
115
|
+
* description: clientSecret of the application set up on the OpenID Provider
|
116
|
+
* in: formData
|
117
|
+
* type: string
|
118
|
+
* sortOrder:
|
119
|
+
* name: sortOrder
|
120
|
+
* description: Indicate the position of the connection in the IdP selection screen
|
121
|
+
* in: formData
|
122
|
+
* type: number
|
123
|
+
* required: false
|
124
|
+
* forceAuthn:
|
125
|
+
* name: forceAuthn
|
126
|
+
* description: Require a new authentication instead of reusing an existing session.
|
127
|
+
* in: formData
|
128
|
+
* type: boolean
|
129
|
+
* required: false
|
130
|
+
* /api/v1/sso:
|
131
|
+
* post:
|
132
|
+
* summary: Create SSO connection
|
133
|
+
* operationId: create-sso-connection
|
134
|
+
* tags: [Single Sign-On]
|
135
|
+
* produces:
|
136
|
+
* - application/json
|
137
|
+
* consumes:
|
138
|
+
* - application/x-www-form-urlencoded
|
139
|
+
* - application/json
|
140
|
+
* parameters:
|
141
|
+
* - $ref: '#/parameters/nameParamPost'
|
142
|
+
* - $ref: '#/parameters/labelParamPost'
|
143
|
+
* - $ref: '#/parameters/descriptionParamPost'
|
144
|
+
* - $ref: '#/parameters/encodedRawMetadataParamPost'
|
145
|
+
* - $ref: '#/parameters/rawMetadataParamPost'
|
146
|
+
* - $ref: '#/parameters/metadataUrlParamPost'
|
147
|
+
* - $ref: '#/parameters/defaultRedirectUrlParamPost'
|
148
|
+
* - $ref: '#/parameters/redirectUrlParamPost'
|
149
|
+
* - $ref: '#/parameters/tenantParamPost'
|
150
|
+
* - $ref: '#/parameters/productParamPost'
|
151
|
+
* - $ref: '#/parameters/oidcDiscoveryUrlPost'
|
152
|
+
* - $ref: '#/parameters/oidcMetadataPost'
|
153
|
+
* - $ref: '#/parameters/oidcClientIdPost'
|
154
|
+
* - $ref: '#/parameters/oidcClientSecretPost'
|
155
|
+
* - $ref: '#/parameters/sortOrder'
|
156
|
+
* - $ref: '#/parameters/forceAuthn'
|
157
|
+
* responses:
|
158
|
+
* 200:
|
159
|
+
* description: Success
|
160
|
+
* schema:
|
161
|
+
* $ref: '#/definitions/Connection'
|
162
|
+
* 400:
|
163
|
+
* $ref: '#/definitions/validationErrorsPost'
|
164
|
+
* 401:
|
165
|
+
* description: Unauthorized
|
166
|
+
*/
|
167
|
+
createSAMLConnection(body: SAMLSSOConnectionWithEncodedMetadata | SAMLSSOConnectionWithRawMetadata): Promise<SAMLSSORecord>;
|
168
|
+
config(...args: Parameters<ConnectionAPIController['createSAMLConnection']>): Promise<SAMLSSORecord>;
|
169
|
+
createOIDCConnection(body: OIDCSSOConnectionWithDiscoveryUrl | OIDCSSOConnectionWithMetadata): Promise<OIDCSSORecord>;
|
170
|
+
/**
|
171
|
+
* @swagger
|
172
|
+
* definitions:
|
173
|
+
* validationErrorsPatch:
|
174
|
+
* description: Please provide clientID | Please provide clientSecret | clientSecret mismatch | Tenant/Product config mismatch with IdP metadata | Description should not exceed 100 characters| redirectUrl is invalid | Exceeded maximum number of allowed redirect urls | defaultRedirectUrl is invalid | Tenant/Product config mismatch with OIDC Provider metadata
|
175
|
+
* parameters:
|
176
|
+
* clientIDParamPatch:
|
177
|
+
* name: clientID
|
178
|
+
* description: Client ID for the connection
|
179
|
+
* type: string
|
180
|
+
* in: formData
|
181
|
+
* required: true
|
182
|
+
* clientSecretParamPatch:
|
183
|
+
* name: clientSecret
|
184
|
+
* description: Client Secret for the connection
|
185
|
+
* type: string
|
186
|
+
* in: formData
|
187
|
+
* required: true
|
188
|
+
* tenantParamPatch:
|
189
|
+
* name: tenant
|
190
|
+
* description: Tenant
|
191
|
+
* in: formData
|
192
|
+
* required: true
|
193
|
+
* type: string
|
194
|
+
* productParamPatch:
|
195
|
+
* name: product
|
196
|
+
* description: Product
|
197
|
+
* in: formData
|
198
|
+
* required: true
|
199
|
+
* type: string
|
200
|
+
* nameParamPatch:
|
201
|
+
* name: name
|
202
|
+
* description: Name/identifier for the connection
|
203
|
+
* type: string
|
204
|
+
* in: formData
|
205
|
+
* labelParamPatch:
|
206
|
+
* name: label
|
207
|
+
* description: An internal label to identify the connection
|
208
|
+
* type: string
|
209
|
+
* in: formData
|
210
|
+
* descriptionParamPatch:
|
211
|
+
* name: description
|
212
|
+
* description: A short description for the connection not more than 100 characters
|
213
|
+
* type: string
|
214
|
+
* in: formData
|
215
|
+
* encodedRawMetadataParamPatch:
|
216
|
+
* name: encodedRawMetadata
|
217
|
+
* description: Base64 encoding of the XML metadata
|
218
|
+
* in: formData
|
219
|
+
* type: string
|
220
|
+
* rawMetadataParamPatch:
|
221
|
+
* name: rawMetadata
|
222
|
+
* description: Raw XML metadata
|
223
|
+
* in: formData
|
224
|
+
* type: string
|
225
|
+
* metadataUrlParamPatch:
|
226
|
+
* name: metadataUrl
|
227
|
+
* description: URL containing raw XML metadata
|
228
|
+
* in: formData
|
229
|
+
* type: string
|
230
|
+
* oidcDiscoveryUrlPatch:
|
231
|
+
* name: oidcDiscoveryUrl
|
232
|
+
* description: well-known URL where the OpenID Provider configuration is exposed
|
233
|
+
* in: formData
|
234
|
+
* type: string
|
235
|
+
* oidcMetadataPatch:
|
236
|
+
* name: oidcMetadata
|
237
|
+
* description: metadata (JSON) for the OpenID Provider in the absence of discoveryUrl
|
238
|
+
* in: formData
|
239
|
+
* type: string
|
240
|
+
* oidcClientIdPatch:
|
241
|
+
* name: oidcClientId
|
242
|
+
* description: clientId of the application set up on the OpenID Provider
|
243
|
+
* in: formData
|
244
|
+
* type: string
|
245
|
+
* oidcClientSecretPatch:
|
246
|
+
* name: oidcClientSecret
|
247
|
+
* description: clientSecret of the application set up on the OpenID Provider
|
248
|
+
* in: formData
|
249
|
+
* type: string
|
250
|
+
* defaultRedirectUrlParamPatch:
|
251
|
+
* name: defaultRedirectUrl
|
252
|
+
* description: The redirect URL to use in the IdP login flow
|
253
|
+
* in: formData
|
254
|
+
* type: string
|
255
|
+
* redirectUrlParamPatch:
|
256
|
+
* name: redirectUrl
|
257
|
+
* description: JSON encoded array containing a list of allowed redirect URLs
|
258
|
+
* in: formData
|
259
|
+
* type: string
|
260
|
+
* deactivatedParamPatch:
|
261
|
+
* name: deactivated
|
262
|
+
* description: Connection status
|
263
|
+
* in: formData
|
264
|
+
* required: false
|
265
|
+
* type: boolean
|
266
|
+
* sortOrderParamPatch:
|
267
|
+
* name: sortOrder
|
268
|
+
* description: Indicate the position of the connection in the IdP selection screen
|
269
|
+
* in: formData
|
270
|
+
* type: number
|
271
|
+
* required: false
|
272
|
+
* forceAuthnParamPatch:
|
273
|
+
* name: forceAuthn
|
274
|
+
* description: Require a new authentication instead of reusing an existing session.
|
275
|
+
* in: formData
|
276
|
+
* type: boolean
|
277
|
+
* required: false
|
278
|
+
* /api/v1/sso:
|
279
|
+
* patch:
|
280
|
+
* summary: Update SSO Connection
|
281
|
+
* operationId: update-sso-connection
|
282
|
+
* tags: [Single Sign-On]
|
283
|
+
* consumes:
|
284
|
+
* - application/json
|
285
|
+
* - application/x-www-form-urlencoded
|
286
|
+
* parameters:
|
287
|
+
* - $ref: '#/parameters/clientIDParamPatch'
|
288
|
+
* - $ref: '#/parameters/clientSecretParamPatch'
|
289
|
+
* - $ref: '#/parameters/nameParamPatch'
|
290
|
+
* - $ref: '#/parameters/labelParamPatch'
|
291
|
+
* - $ref: '#/parameters/descriptionParamPatch'
|
292
|
+
* - $ref: '#/parameters/encodedRawMetadataParamPatch'
|
293
|
+
* - $ref: '#/parameters/rawMetadataParamPatch'
|
294
|
+
* - $ref: '#/parameters/metadataUrlParamPatch'
|
295
|
+
* - $ref: '#/parameters/oidcDiscoveryUrlPatch'
|
296
|
+
* - $ref: '#/parameters/oidcMetadataPatch'
|
297
|
+
* - $ref: '#/parameters/oidcClientIdPatch'
|
298
|
+
* - $ref: '#/parameters/oidcClientSecretPatch'
|
299
|
+
* - $ref: '#/parameters/defaultRedirectUrlParamPatch'
|
300
|
+
* - $ref: '#/parameters/redirectUrlParamPatch'
|
301
|
+
* - $ref: '#/parameters/tenantParamPatch'
|
302
|
+
* - $ref: '#/parameters/productParamPatch'
|
303
|
+
* - $ref: '#/parameters/deactivatedParamPatch'
|
304
|
+
* - $ref: '#/parameters/sortOrderParamPatch'
|
305
|
+
* - $ref: '#/parameters/forceAuthnParamPatch'
|
306
|
+
* responses:
|
307
|
+
* 204:
|
308
|
+
* description: Success
|
309
|
+
* 400:
|
310
|
+
* $ref: '#/definitions/validationErrorsPatch'
|
311
|
+
* 401:
|
312
|
+
* description: Unauthorized
|
313
|
+
* 500:
|
314
|
+
* description: Please set OpenID response handler path (oidcPath) on Jackson
|
315
|
+
*/
|
316
|
+
updateSAMLConnection(body: UpdateSAMLConnectionParams): Promise<void>;
|
317
|
+
updateConfig(...args: Parameters<ConnectionAPIController['updateSAMLConnection']>): Promise<void>;
|
318
|
+
updateOIDCConnection(body: UpdateOIDCConnectionParams): Promise<void>;
|
319
|
+
getIDPEntityID(body: GetIDPEntityIDBody): string;
|
320
|
+
/**
|
321
|
+
* @swagger
|
322
|
+
* parameters:
|
323
|
+
* tenantParamGet:
|
324
|
+
* in: query
|
325
|
+
* name: tenant
|
326
|
+
* type: string
|
327
|
+
* description: Tenant (Optional if clientID provided)
|
328
|
+
* productParamGet:
|
329
|
+
* in: query
|
330
|
+
* name: product
|
331
|
+
* type: string
|
332
|
+
* description: Product (Optional if clientID provided)
|
333
|
+
* clientIDParamGet:
|
334
|
+
* in: query
|
335
|
+
* name: clientID
|
336
|
+
* type: string
|
337
|
+
* description: Client ID (Optional if tenant/product provided)
|
338
|
+
* strategyParamGet:
|
339
|
+
* in: query
|
340
|
+
* name: strategy
|
341
|
+
* type: string
|
342
|
+
* description: Strategy which can help to filter connections with tenant/product query
|
343
|
+
* sortParamGet:
|
344
|
+
* in: query
|
345
|
+
* name: sort
|
346
|
+
* type: string
|
347
|
+
* description: If present, the connections will be sorted by `sortOrder`. It won't consider if pagination is used.
|
348
|
+
* definitions:
|
349
|
+
* Connection:
|
350
|
+
* type: object
|
351
|
+
* properties:
|
352
|
+
* clientID:
|
353
|
+
* type: string
|
354
|
+
* description: Connection clientID
|
355
|
+
* clientSecret:
|
356
|
+
* type: string
|
357
|
+
* description: Connection clientSecret
|
358
|
+
* name:
|
359
|
+
* type: string
|
360
|
+
* description: Connection name
|
361
|
+
* label:
|
362
|
+
* type: string
|
363
|
+
* description: Connection label
|
364
|
+
* description:
|
365
|
+
* type: string
|
366
|
+
* description: Connection description
|
367
|
+
* redirectUrl:
|
368
|
+
* type: string
|
369
|
+
* description: A list of allowed redirect URLs
|
370
|
+
* defaultRedirectUrl:
|
371
|
+
* type: string
|
372
|
+
* description: The redirect URL to use in the IdP login flow
|
373
|
+
* tenant:
|
374
|
+
* type: string
|
375
|
+
* description: Connection tenant
|
376
|
+
* product:
|
377
|
+
* type: string
|
378
|
+
* description: Connection product
|
379
|
+
* idpMetadata:
|
380
|
+
* type: object
|
381
|
+
* description: SAML IdP metadata
|
382
|
+
* oidcProvider:
|
383
|
+
* type: object
|
384
|
+
* description: OIDC IdP metadata
|
385
|
+
* deactivated:
|
386
|
+
* type: boolean
|
387
|
+
* description: Connection status
|
388
|
+
* sortOrder:
|
389
|
+
* type: number
|
390
|
+
* description: Connection sort order
|
391
|
+
* responses:
|
392
|
+
* '200Get':
|
393
|
+
* description: Success
|
394
|
+
* schema:
|
395
|
+
* type: array
|
396
|
+
* items:
|
397
|
+
* $ref: '#/definitions/Connection'
|
398
|
+
* '400Get':
|
399
|
+
* description: Please provide `clientID` or `tenant` and `product`.
|
400
|
+
* '401Get':
|
401
|
+
* description: Unauthorized
|
402
|
+
* /api/v1/sso:
|
403
|
+
* get:
|
404
|
+
* summary: Get SSO Connections
|
405
|
+
* parameters:
|
406
|
+
* - $ref: '#/parameters/tenantParamGet'
|
407
|
+
* - $ref: '#/parameters/productParamGet'
|
408
|
+
* - $ref: '#/parameters/clientIDParamGet'
|
409
|
+
* - $ref: '#/parameters/strategyParamGet'
|
410
|
+
* - $ref: '#/parameters/sortParamGet'
|
411
|
+
* operationId: get-connections
|
412
|
+
* tags: [Single Sign-On]
|
413
|
+
* responses:
|
414
|
+
* '200':
|
415
|
+
* $ref: '#/responses/200Get'
|
416
|
+
* '400':
|
417
|
+
* $ref: '#/responses/400Get'
|
418
|
+
* '401':
|
419
|
+
* $ref: '#/responses/401Get'
|
420
|
+
*/
|
421
|
+
getConnections(body: GetConnectionsQuery): Promise<Array<SAMLSSORecord | OIDCSSORecord>>;
|
422
|
+
getConfig(body: GetConfigQuery): Promise<SAMLSSORecord | Record<string, never>>;
|
423
|
+
/**
|
424
|
+
* @swagger
|
425
|
+
* parameters:
|
426
|
+
* clientIDDel:
|
427
|
+
* name: clientID
|
428
|
+
* in: query
|
429
|
+
* type: string
|
430
|
+
* description: Client ID (Optional if tenant/product provided)
|
431
|
+
* clientSecretDel:
|
432
|
+
* name: clientSecret
|
433
|
+
* in: query
|
434
|
+
* type: string
|
435
|
+
* description: Client Secret (Optional if tenant/product provided)
|
436
|
+
* tenantDel:
|
437
|
+
* name: tenant
|
438
|
+
* in: query
|
439
|
+
* type: string
|
440
|
+
* description: Tenant (Optional if clientID/Secret provided)
|
441
|
+
* productDel:
|
442
|
+
* name: product
|
443
|
+
* in: query
|
444
|
+
* type: string
|
445
|
+
* description: Product (Optional if clientID/Secret provided)
|
446
|
+
* strategyDel:
|
447
|
+
* name: strategy
|
448
|
+
* in: query
|
449
|
+
* type: string
|
450
|
+
* description: Strategy which can help to filter connections with tenant/product query
|
451
|
+
* /api/v1/sso:
|
452
|
+
* delete:
|
453
|
+
* parameters:
|
454
|
+
* - $ref: '#/parameters/clientIDDel'
|
455
|
+
* - $ref: '#/parameters/clientSecretDel'
|
456
|
+
* - $ref: '#/parameters/tenantDel'
|
457
|
+
* - $ref: '#/parameters/productDel'
|
458
|
+
* - $ref: '#/parameters/strategyDel'
|
459
|
+
* summary: Delete SSO Connections
|
460
|
+
* operationId: delete-sso-connection
|
461
|
+
* tags: [Single Sign-On]
|
462
|
+
* responses:
|
463
|
+
* '200':
|
464
|
+
* description: Success
|
465
|
+
* '400':
|
466
|
+
* description: clientSecret mismatch | Please provide `clientID` and `clientSecret` or `tenant` and `product`.
|
467
|
+
* '401':
|
468
|
+
* description: Unauthorized
|
469
|
+
*/
|
470
|
+
deleteConnections(body: DelConnectionsQuery): Promise<void>;
|
471
|
+
deleteConfig(body: DelConnectionsQuery): Promise<void>;
|
472
|
+
/**
|
473
|
+
* @swagger
|
474
|
+
* parameters:
|
475
|
+
* productParamGet:
|
476
|
+
* in: query
|
477
|
+
* name: product
|
478
|
+
* type: string
|
479
|
+
* description: Product
|
480
|
+
* required: true
|
481
|
+
* definitions:
|
482
|
+
* Connection:
|
483
|
+
* type: object
|
484
|
+
* properties:
|
485
|
+
* clientID:
|
486
|
+
* type: string
|
487
|
+
* description: Connection clientID
|
488
|
+
* clientSecret:
|
489
|
+
* type: string
|
490
|
+
* description: Connection clientSecret
|
491
|
+
* name:
|
492
|
+
* type: string
|
493
|
+
* description: Connection name
|
494
|
+
* description:
|
495
|
+
* type: string
|
496
|
+
* description: Connection description
|
497
|
+
* redirectUrl:
|
498
|
+
* type: string
|
499
|
+
* description: A list of allowed redirect URLs
|
500
|
+
* defaultRedirectUrl:
|
501
|
+
* type: string
|
502
|
+
* description: The redirect URL to use in the IdP login flow
|
503
|
+
* tenant:
|
504
|
+
* type: string
|
505
|
+
* description: Connection tenant
|
506
|
+
* product:
|
507
|
+
* type: string
|
508
|
+
* description: Connection product
|
509
|
+
* idpMetadata:
|
510
|
+
* type: object
|
511
|
+
* description: SAML IdP metadata
|
512
|
+
* oidcProvider:
|
513
|
+
* type: object
|
514
|
+
* description: OIDC IdP metadata
|
515
|
+
* responses:
|
516
|
+
* '200GetByProduct':
|
517
|
+
* description: Success
|
518
|
+
* content:
|
519
|
+
* application/json:
|
520
|
+
* schema:
|
521
|
+
* type: object
|
522
|
+
* properties:
|
523
|
+
* data:
|
524
|
+
* type: array
|
525
|
+
* items:
|
526
|
+
* $ref: '#/definitions/Connection'
|
527
|
+
* pageToken:
|
528
|
+
* type: string
|
529
|
+
* description: token for pagination
|
530
|
+
* '400Get':
|
531
|
+
* description: Please provide a `product`.
|
532
|
+
* '401Get':
|
533
|
+
* description: Unauthorized
|
534
|
+
* /api/v1/sso/product:
|
535
|
+
* get:
|
536
|
+
* summary: Get SSO Connections by product
|
537
|
+
* parameters:
|
538
|
+
* - $ref: '#/parameters/productParamGet'
|
539
|
+
* - $ref: '#/parameters/pageOffset'
|
540
|
+
* - $ref: '#/parameters/pageLimit'
|
541
|
+
* - $ref: '#/parameters/pageToken'
|
542
|
+
* operationId: get-connections-by-product
|
543
|
+
* tags: [Single Sign-On]
|
544
|
+
* responses:
|
545
|
+
* '200':
|
546
|
+
* $ref: '#/responses/200GetByProduct'
|
547
|
+
* '400':
|
548
|
+
* $ref: '#/responses/400Get'
|
549
|
+
* '401':
|
550
|
+
* $ref: '#/responses/401Get'
|
551
|
+
*/
|
552
|
+
getConnectionsByProduct(body: GetByProductParams): Promise<{
|
553
|
+
data: (SAMLSSORecord | OIDCSSORecord)[];
|
554
|
+
pageToken?: string;
|
555
|
+
}>;
|
556
|
+
getCount(idx?: Index): Promise<number | undefined>;
|
557
|
+
}
|