@olympeio/runtime-node 9.2.0 → 9.2.2
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/package.json
CHANGED
package/types/utils.d.ts
CHANGED
|
@@ -240,6 +240,7 @@ export class Auth {
|
|
|
240
240
|
* Try to login using SAML protocol with the specified username and password.
|
|
241
241
|
* Returns a promise resolved when logged in or that catches an error if refused.
|
|
242
242
|
*
|
|
243
|
+
* @deprecated use {@link Auth#loginSSO} instead
|
|
243
244
|
* @throws {Error} If the provider's configuration is incorrect.
|
|
244
245
|
*/
|
|
245
246
|
static loginSAML(): Promise<void>;
|
|
@@ -247,10 +248,26 @@ export class Auth {
|
|
|
247
248
|
/**
|
|
248
249
|
* Try to login using the configured OpenID Provider.
|
|
249
250
|
* Returns a promise resolved when logged in or that catches an error if the login is not valid.
|
|
251
|
+
*
|
|
252
|
+
* @deprecated use {@link Auth#loginSSO} instead
|
|
250
253
|
* @throws {Error} If the provider's configuration is incorrect.
|
|
251
254
|
*/
|
|
252
255
|
static loginOpenID(): Promise<void>;
|
|
253
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Retrieve the IDP names that can be used for SSO login
|
|
259
|
+
*/
|
|
260
|
+
static getIDPNames(): Array<string>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Try to login using SSO.
|
|
264
|
+
* Returns a promise resolved when logged in or an error if the login is not valid.
|
|
265
|
+
*
|
|
266
|
+
* @param idpName the IDP name which should be used. If not specified, take the first available SSO.
|
|
267
|
+
* @throws {Error} If the IDP name is incorrect.
|
|
268
|
+
*/
|
|
269
|
+
static loginSSO(idpName?: string): Promise<void>;
|
|
270
|
+
|
|
254
271
|
/**
|
|
255
272
|
* Log out the current user and invalidate its session token.
|
|
256
273
|
* It returns a promise resolved when the operation is done.
|