@emilgroup/auth-sdk 1.33.1-beta.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/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/authservice-api.ts +88 -0
- package/dist/api/authservice-api.d.ts +47 -0
- package/dist/api/authservice-api.js +78 -0
- package/dist/models/create-org-and-user-request-dto.d.ts +4 -2
- package/dist/models/get-sso-login-config-request-dto.d.ts +24 -0
- package/dist/models/get-sso-login-config-request-dto.js +15 -0
- package/dist/models/get-sso-login-config-response-class.d.ts +42 -0
- package/dist/models/get-sso-login-config-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/login-by-sso-request-dto.d.ts +30 -0
- package/dist/models/login-by-sso-request-dto.js +15 -0
- package/models/create-org-and-user-request-dto.ts +2 -2
- package/models/get-sso-login-config-request-dto.ts +30 -0
- package/models/get-sso-login-config-response-class.ts +48 -0
- package/models/index.ts +3 -0
- package/models/login-by-sso-request-dto.ts +36 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,11 +18,14 @@ models/create-user-response-class.ts
|
|
|
18
18
|
models/custom-schema-class.ts
|
|
19
19
|
models/forgot-password-request-dto.ts
|
|
20
20
|
models/get-saml-login-link-request-dto.ts
|
|
21
|
+
models/get-sso-login-config-request-dto.ts
|
|
22
|
+
models/get-sso-login-config-response-class.ts
|
|
21
23
|
models/index.ts
|
|
22
24
|
models/inline-response200.ts
|
|
23
25
|
models/inline-response503.ts
|
|
24
26
|
models/list-workspaces-response-class.ts
|
|
25
27
|
models/login-by-saml-request-dto.ts
|
|
28
|
+
models/login-by-sso-request-dto.ts
|
|
26
29
|
models/login-class.ts
|
|
27
30
|
models/login-request-dto.ts
|
|
28
31
|
models/logout-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/auth-sdk@1.33.1-beta.
|
|
20
|
+
npm install @emilgroup/auth-sdk@1.33.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.33.1-beta.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.33.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/authservice-api.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { CreateUserResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { ForgotPasswordRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { GetSsoLoginConfigResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { LoginBySamlRequestDto } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { LoginClass } from '../models';
|
|
@@ -194,6 +196,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
194
196
|
|
|
195
197
|
|
|
196
198
|
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
202
|
+
|
|
203
|
+
return {
|
|
204
|
+
url: toPathString(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
210
|
+
* @summary Get the SSO login config for a tenant
|
|
211
|
+
* @param {string} tenantSlug
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
getSsoLoginConfig: async (tenantSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
216
|
+
// verify required parameter 'tenantSlug' is not null or undefined
|
|
217
|
+
assertParamExists('getSsoLoginConfig', 'tenantSlug', tenantSlug)
|
|
218
|
+
const localVarPath = `/authservice/v1/login/sso-config`;
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
let baseAccessToken;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
baseAccessToken = configuration.accessToken;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
229
|
+
const localVarHeaderParameter = {} as any;
|
|
230
|
+
const localVarQueryParameter = {} as any;
|
|
231
|
+
|
|
232
|
+
if (tenantSlug !== undefined) {
|
|
233
|
+
localVarQueryParameter['tenantSlug'] = tenantSlug;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
197
238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
240
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -569,6 +610,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
569
610
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSamlLoginLink(tenantSlug, options);
|
|
570
611
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
571
612
|
},
|
|
613
|
+
/**
|
|
614
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
615
|
+
* @summary Get the SSO login config for a tenant
|
|
616
|
+
* @param {string} tenantSlug
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
async getSsoLoginConfig(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoLoginConfigResponseClass>> {
|
|
621
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoLoginConfig(tenantSlug, options);
|
|
622
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
623
|
+
},
|
|
572
624
|
/**
|
|
573
625
|
* Get new access token, refresh token after successful login.
|
|
574
626
|
* @summary Login by tenant
|
|
@@ -708,6 +760,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
708
760
|
getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<void> {
|
|
709
761
|
return localVarFp.getSamlLoginLink(tenantSlug, options).then((request) => request(axios, basePath));
|
|
710
762
|
},
|
|
763
|
+
/**
|
|
764
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
765
|
+
* @summary Get the SSO login config for a tenant
|
|
766
|
+
* @param {string} tenantSlug
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
getSsoLoginConfig(tenantSlug: string, options?: any): AxiosPromise<GetSsoLoginConfigResponseClass> {
|
|
771
|
+
return localVarFp.getSsoLoginConfig(tenantSlug, options).then((request) => request(axios, basePath));
|
|
772
|
+
},
|
|
711
773
|
/**
|
|
712
774
|
* Get new access token, refresh token after successful login.
|
|
713
775
|
* @summary Login by tenant
|
|
@@ -848,6 +910,20 @@ export interface AuthserviceApiGetSamlLoginLinkRequest {
|
|
|
848
910
|
readonly tenantSlug: string
|
|
849
911
|
}
|
|
850
912
|
|
|
913
|
+
/**
|
|
914
|
+
* Request parameters for getSsoLoginConfig operation in AuthserviceApi.
|
|
915
|
+
* @export
|
|
916
|
+
* @interface AuthserviceApiGetSsoLoginConfigRequest
|
|
917
|
+
*/
|
|
918
|
+
export interface AuthserviceApiGetSsoLoginConfigRequest {
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @type {string}
|
|
922
|
+
* @memberof AuthserviceApiGetSsoLoginConfig
|
|
923
|
+
*/
|
|
924
|
+
readonly tenantSlug: string
|
|
925
|
+
}
|
|
926
|
+
|
|
851
927
|
/**
|
|
852
928
|
* Request parameters for login operation in AuthserviceApi.
|
|
853
929
|
* @export
|
|
@@ -1022,6 +1098,18 @@ export class AuthserviceApi extends BaseAPI {
|
|
|
1022
1098
|
return AuthserviceApiFp(this.configuration).getSamlLoginLink(requestParameters.tenantSlug, options).then((request) => request(this.axios, this.basePath));
|
|
1023
1099
|
}
|
|
1024
1100
|
|
|
1101
|
+
/**
|
|
1102
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
1103
|
+
* @summary Get the SSO login config for a tenant
|
|
1104
|
+
* @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
* @memberof AuthserviceApi
|
|
1108
|
+
*/
|
|
1109
|
+
public getSsoLoginConfig(requestParameters: AuthserviceApiGetSsoLoginConfigRequest, options?: AxiosRequestConfig) {
|
|
1110
|
+
return AuthserviceApiFp(this.configuration).getSsoLoginConfig(requestParameters.tenantSlug, options).then((request) => request(this.axios, this.basePath));
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1025
1113
|
/**
|
|
1026
1114
|
* Get new access token, refresh token after successful login.
|
|
1027
1115
|
* @summary Login by tenant
|
|
@@ -17,6 +17,7 @@ import { CreateOrgAndUserResponseClass } from '../models';
|
|
|
17
17
|
import { CreateUserRequestDto } from '../models';
|
|
18
18
|
import { CreateUserResponseClass } from '../models';
|
|
19
19
|
import { ForgotPasswordRequestDto } from '../models';
|
|
20
|
+
import { GetSsoLoginConfigResponseClass } from '../models';
|
|
20
21
|
import { LoginBySamlRequestDto } from '../models';
|
|
21
22
|
import { LoginClass } from '../models';
|
|
22
23
|
import { LoginRequestDto } from '../models';
|
|
@@ -61,6 +62,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
61
62
|
* @throws {RequiredError}
|
|
62
63
|
*/
|
|
63
64
|
getSamlLoginLink: (tenantSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
67
|
+
* @summary Get the SSO login config for a tenant
|
|
68
|
+
* @param {string} tenantSlug
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
getSsoLoginConfig: (tenantSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
73
|
/**
|
|
65
74
|
* Get new access token, refresh token after successful login.
|
|
66
75
|
* @summary Login by tenant
|
|
@@ -164,6 +173,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
164
173
|
* @throws {RequiredError}
|
|
165
174
|
*/
|
|
166
175
|
getSamlLoginLink(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
176
|
+
/**
|
|
177
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
178
|
+
* @summary Get the SSO login config for a tenant
|
|
179
|
+
* @param {string} tenantSlug
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
getSsoLoginConfig(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoLoginConfigResponseClass>>;
|
|
167
184
|
/**
|
|
168
185
|
* Get new access token, refresh token after successful login.
|
|
169
186
|
* @summary Login by tenant
|
|
@@ -267,6 +284,14 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
267
284
|
* @throws {RequiredError}
|
|
268
285
|
*/
|
|
269
286
|
getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<void>;
|
|
287
|
+
/**
|
|
288
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
289
|
+
* @summary Get the SSO login config for a tenant
|
|
290
|
+
* @param {string} tenantSlug
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
getSsoLoginConfig(tenantSlug: string, options?: any): AxiosPromise<GetSsoLoginConfigResponseClass>;
|
|
270
295
|
/**
|
|
271
296
|
* Get new access token, refresh token after successful login.
|
|
272
297
|
* @summary Login by tenant
|
|
@@ -385,6 +410,19 @@ export interface AuthserviceApiGetSamlLoginLinkRequest {
|
|
|
385
410
|
*/
|
|
386
411
|
readonly tenantSlug: string;
|
|
387
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Request parameters for getSsoLoginConfig operation in AuthserviceApi.
|
|
415
|
+
* @export
|
|
416
|
+
* @interface AuthserviceApiGetSsoLoginConfigRequest
|
|
417
|
+
*/
|
|
418
|
+
export interface AuthserviceApiGetSsoLoginConfigRequest {
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @type {string}
|
|
422
|
+
* @memberof AuthserviceApiGetSsoLoginConfig
|
|
423
|
+
*/
|
|
424
|
+
readonly tenantSlug: string;
|
|
425
|
+
}
|
|
388
426
|
/**
|
|
389
427
|
* Request parameters for login operation in AuthserviceApi.
|
|
390
428
|
* @export
|
|
@@ -538,6 +576,15 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
538
576
|
* @memberof AuthserviceApi
|
|
539
577
|
*/
|
|
540
578
|
getSamlLoginLink(requestParameters: AuthserviceApiGetSamlLoginLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
579
|
+
/**
|
|
580
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
581
|
+
* @summary Get the SSO login config for a tenant
|
|
582
|
+
* @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
* @memberof AuthserviceApi
|
|
586
|
+
*/
|
|
587
|
+
getSsoLoginConfig(requestParameters: AuthserviceApiGetSsoLoginConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoLoginConfigResponseClass, any, {}>>;
|
|
541
588
|
/**
|
|
542
589
|
* Get new access token, refresh token after successful login.
|
|
543
590
|
* @summary Login by tenant
|
|
@@ -233,6 +233,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
},
|
|
236
|
+
/**
|
|
237
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
238
|
+
* @summary Get the SSO login config for a tenant
|
|
239
|
+
* @param {string} tenantSlug
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
getSsoLoginConfig: function (tenantSlug, options) {
|
|
244
|
+
if (options === void 0) { options = {}; }
|
|
245
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
246
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
247
|
+
return __generator(this, function (_a) {
|
|
248
|
+
// verify required parameter 'tenantSlug' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('getSsoLoginConfig', 'tenantSlug', tenantSlug);
|
|
250
|
+
localVarPath = "/authservice/v1/login/sso-config";
|
|
251
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
252
|
+
if (configuration) {
|
|
253
|
+
baseOptions = configuration.baseOptions;
|
|
254
|
+
baseAccessToken = configuration.accessToken;
|
|
255
|
+
}
|
|
256
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
257
|
+
localVarHeaderParameter = {};
|
|
258
|
+
localVarQueryParameter = {};
|
|
259
|
+
if (tenantSlug !== undefined) {
|
|
260
|
+
localVarQueryParameter['tenantSlug'] = tenantSlug;
|
|
261
|
+
}
|
|
262
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
263
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
265
|
+
return [2 /*return*/, {
|
|
266
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
267
|
+
options: localVarRequestOptions,
|
|
268
|
+
}];
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
},
|
|
236
272
|
/**
|
|
237
273
|
* Get new access token, refresh token after successful login.
|
|
238
274
|
* @summary Login by tenant
|
|
@@ -610,6 +646,26 @@ var AuthserviceApiFp = function (configuration) {
|
|
|
610
646
|
});
|
|
611
647
|
});
|
|
612
648
|
},
|
|
649
|
+
/**
|
|
650
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
651
|
+
* @summary Get the SSO login config for a tenant
|
|
652
|
+
* @param {string} tenantSlug
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
*/
|
|
656
|
+
getSsoLoginConfig: function (tenantSlug, options) {
|
|
657
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
658
|
+
var localVarAxiosArgs;
|
|
659
|
+
return __generator(this, function (_a) {
|
|
660
|
+
switch (_a.label) {
|
|
661
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSsoLoginConfig(tenantSlug, options)];
|
|
662
|
+
case 1:
|
|
663
|
+
localVarAxiosArgs = _a.sent();
|
|
664
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
});
|
|
668
|
+
},
|
|
613
669
|
/**
|
|
614
670
|
* Get new access token, refresh token after successful login.
|
|
615
671
|
* @summary Login by tenant
|
|
@@ -821,6 +877,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
|
|
|
821
877
|
getSamlLoginLink: function (tenantSlug, options) {
|
|
822
878
|
return localVarFp.getSamlLoginLink(tenantSlug, options).then(function (request) { return request(axios, basePath); });
|
|
823
879
|
},
|
|
880
|
+
/**
|
|
881
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
882
|
+
* @summary Get the SSO login config for a tenant
|
|
883
|
+
* @param {string} tenantSlug
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
getSsoLoginConfig: function (tenantSlug, options) {
|
|
888
|
+
return localVarFp.getSsoLoginConfig(tenantSlug, options).then(function (request) { return request(axios, basePath); });
|
|
889
|
+
},
|
|
824
890
|
/**
|
|
825
891
|
* Get new access token, refresh token after successful login.
|
|
826
892
|
* @summary Login by tenant
|
|
@@ -964,6 +1030,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
|
|
|
964
1030
|
var _this = this;
|
|
965
1031
|
return (0, exports.AuthserviceApiFp)(this.configuration).getSamlLoginLink(requestParameters.tenantSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
966
1032
|
};
|
|
1033
|
+
/**
|
|
1034
|
+
* Returns the hosted UI url the SSO button sends the browser to, together with the identity provider vendor the button is branded with.
|
|
1035
|
+
* @summary Get the SSO login config for a tenant
|
|
1036
|
+
* @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
* @memberof AuthserviceApi
|
|
1040
|
+
*/
|
|
1041
|
+
AuthserviceApi.prototype.getSsoLoginConfig = function (requestParameters, options) {
|
|
1042
|
+
var _this = this;
|
|
1043
|
+
return (0, exports.AuthserviceApiFp)(this.configuration).getSsoLoginConfig(requestParameters.tenantSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1044
|
+
};
|
|
967
1045
|
/**
|
|
968
1046
|
* Get new access token, refresh token after successful login.
|
|
969
1047
|
* @summary Login by tenant
|
|
@@ -41,10 +41,12 @@ export interface CreateOrgAndUserRequestDto {
|
|
|
41
41
|
'country': string;
|
|
42
42
|
/**
|
|
43
43
|
* Custom fields of the organization
|
|
44
|
-
* @type {object}
|
|
44
|
+
* @type {{ [key: string]: object; }}
|
|
45
45
|
* @memberof CreateOrgAndUserRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'customFields'?:
|
|
47
|
+
'customFields'?: {
|
|
48
|
+
[key: string]: object;
|
|
49
|
+
};
|
|
48
50
|
/**
|
|
49
51
|
* User\'s first name
|
|
50
52
|
* @type {string}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetSsoLoginConfigRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSsoLoginConfigRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSsoLoginConfigRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'tenantSlug': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetSsoLoginConfigResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSsoLoginConfigResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* tenant slug
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'tenantSlug': string;
|
|
24
|
+
/**
|
|
25
|
+
* Hosted UI url the login button sends the browser to
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'loginUrl': string;
|
|
30
|
+
/**
|
|
31
|
+
* Identity provider vendor used to brand the login button (e.g. \'microsoft\').
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'provider': string;
|
|
36
|
+
/**
|
|
37
|
+
* Federation protocol, \'saml\' or \'oidc\'.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'protocol'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,10 +5,13 @@ export * from './create-user-response-class';
|
|
|
5
5
|
export * from './custom-schema-class';
|
|
6
6
|
export * from './forgot-password-request-dto';
|
|
7
7
|
export * from './get-saml-login-link-request-dto';
|
|
8
|
+
export * from './get-sso-login-config-request-dto';
|
|
9
|
+
export * from './get-sso-login-config-response-class';
|
|
8
10
|
export * from './inline-response200';
|
|
9
11
|
export * from './inline-response503';
|
|
10
12
|
export * from './list-workspaces-response-class';
|
|
11
13
|
export * from './login-by-saml-request-dto';
|
|
14
|
+
export * from './login-by-sso-request-dto';
|
|
12
15
|
export * from './login-class';
|
|
13
16
|
export * from './login-request-dto';
|
|
14
17
|
export * from './logout-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -21,10 +21,13 @@ __exportStar(require("./create-user-response-class"), exports);
|
|
|
21
21
|
__exportStar(require("./custom-schema-class"), exports);
|
|
22
22
|
__exportStar(require("./forgot-password-request-dto"), exports);
|
|
23
23
|
__exportStar(require("./get-saml-login-link-request-dto"), exports);
|
|
24
|
+
__exportStar(require("./get-sso-login-config-request-dto"), exports);
|
|
25
|
+
__exportStar(require("./get-sso-login-config-response-class"), exports);
|
|
24
26
|
__exportStar(require("./inline-response200"), exports);
|
|
25
27
|
__exportStar(require("./inline-response503"), exports);
|
|
26
28
|
__exportStar(require("./list-workspaces-response-class"), exports);
|
|
27
29
|
__exportStar(require("./login-by-saml-request-dto"), exports);
|
|
30
|
+
__exportStar(require("./login-by-sso-request-dto"), exports);
|
|
28
31
|
__exportStar(require("./login-class"), exports);
|
|
29
32
|
__exportStar(require("./login-request-dto"), exports);
|
|
30
33
|
__exportStar(require("./logout-request-dto"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginBySsoRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginBySsoRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Authorization code cognito redirected back with
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginBySsoRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant slug
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginBySsoRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'tenantSlug': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -46,10 +46,10 @@ export interface CreateOrgAndUserRequestDto {
|
|
|
46
46
|
'country': string;
|
|
47
47
|
/**
|
|
48
48
|
* Custom fields of the organization
|
|
49
|
-
* @type {object}
|
|
49
|
+
* @type {{ [key: string]: object; }}
|
|
50
50
|
* @memberof CreateOrgAndUserRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'customFields'?: object;
|
|
52
|
+
'customFields'?: { [key: string]: object; };
|
|
53
53
|
/**
|
|
54
54
|
* User\'s first name
|
|
55
55
|
* @type {string}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GetSsoLoginConfigRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSsoLoginConfigRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetSsoLoginConfigRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'tenantSlug': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GetSsoLoginConfigResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSsoLoginConfigResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* tenant slug
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'tenantSlug': string;
|
|
29
|
+
/**
|
|
30
|
+
* Hosted UI url the login button sends the browser to
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'loginUrl': string;
|
|
35
|
+
/**
|
|
36
|
+
* Identity provider vendor used to brand the login button (e.g. \'microsoft\').
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'provider': string;
|
|
41
|
+
/**
|
|
42
|
+
* Federation protocol, \'saml\' or \'oidc\'.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GetSsoLoginConfigResponseClass
|
|
45
|
+
*/
|
|
46
|
+
'protocol'?: string;
|
|
47
|
+
}
|
|
48
|
+
|
package/models/index.ts
CHANGED
|
@@ -5,10 +5,13 @@ export * from './create-user-response-class';
|
|
|
5
5
|
export * from './custom-schema-class';
|
|
6
6
|
export * from './forgot-password-request-dto';
|
|
7
7
|
export * from './get-saml-login-link-request-dto';
|
|
8
|
+
export * from './get-sso-login-config-request-dto';
|
|
9
|
+
export * from './get-sso-login-config-response-class';
|
|
8
10
|
export * from './inline-response200';
|
|
9
11
|
export * from './inline-response503';
|
|
10
12
|
export * from './list-workspaces-response-class';
|
|
11
13
|
export * from './login-by-saml-request-dto';
|
|
14
|
+
export * from './login-by-sso-request-dto';
|
|
12
15
|
export * from './login-class';
|
|
13
16
|
export * from './login-request-dto';
|
|
14
17
|
export * from './logout-request-dto';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface LoginBySsoRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface LoginBySsoRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Authorization code cognito redirected back with
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LoginBySsoRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Tenant slug
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LoginBySsoRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'tenantSlug': string;
|
|
35
|
+
}
|
|
36
|
+
|