@frontegg/rest-api
Advanced tools
Comparing version 1.16.1-alpha.447338306 to 1.16.1-alpha.447366100
@@ -0,1 +1,2 @@ | ||
import { IUpdateSamlRoles } from './interfaces'; | ||
import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin, IVendorConfig, ISignUpUser, ISignUpResponse, IUserApiTokensData, ITenantApiTokensData, IUpdateUserApiTokensData, IUpdateTenantApiTokensData, IDeleteApiToken } from './interfaces'; | ||
@@ -146,2 +147,12 @@ /** | ||
*/ | ||
export declare function getSamlRoles(): Promise<Array<string>>; | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
export declare function updateSamlRoles({ roleIds }: IUpdateSamlRoles): Promise<void>; | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
export declare function getSocialLoginsProviders(): Promise<ISocialLoginProviderConfiguration[]>; | ||
@@ -148,0 +159,0 @@ /** |
@@ -146,1 +146,4 @@ import { IUserProfile } from '..'; | ||
} | ||
export interface IUpdateSamlRoles { | ||
roleIds: Array<string>; | ||
} |
@@ -342,3 +342,2 @@ import { __awaiter, __generator, __assign, __rest } from 'tslib'; | ||
/* tslint:disable:no-console */ | ||
/***************************************** | ||
@@ -695,2 +694,27 @@ * Authentication | ||
*/ | ||
function getSamlRoles() { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
console.debug('getSocialLoginsProviders()'); | ||
return [2 /*return*/, Get(SSO_SERVICE_URL_V1 + "/saml/configurations/roles/default")]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function updateSamlRoles(_a) { | ||
var roleIds = _a.roleIds; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_b) { | ||
console.debug('getSocialLoginsProviders()'); | ||
return [2 /*return*/, Post(SSO_SERVICE_URL_V1 + "/saml/configurations/roles/default", { roleIds: roleIds })]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function getSocialLoginsProviders() { | ||
@@ -834,2 +858,4 @@ return __awaiter(this, void 0, void 0, function () { | ||
validateSamlDomain: validateSamlDomain, | ||
getSamlRoles: getSamlRoles, | ||
updateSamlRoles: updateSamlRoles, | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
@@ -836,0 +862,0 @@ loginViaSocialLogin: loginViaSocialLogin, |
@@ -251,3 +251,2 @@ import { __awaiter, __rest } from 'tslib'; | ||
/* tslint:disable:no-console */ | ||
/***************************************** | ||
@@ -524,2 +523,22 @@ * Authentication | ||
*/ | ||
function getSamlRoles() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.debug('getSocialLoginsProviders()'); | ||
return Get(`${SSO_SERVICE_URL_V1}/saml/configurations/roles/default`); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function updateSamlRoles({ roleIds }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.debug('getSocialLoginsProviders()'); | ||
return Post(`${SSO_SERVICE_URL_V1}/saml/configurations/roles/default`, { roleIds }); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function getSocialLoginsProviders() { | ||
@@ -640,2 +659,4 @@ return __awaiter(this, void 0, void 0, function* () { | ||
validateSamlDomain: validateSamlDomain, | ||
getSamlRoles: getSamlRoles, | ||
updateSamlRoles: updateSamlRoles, | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
@@ -642,0 +663,0 @@ loginViaSocialLogin: loginViaSocialLogin, |
28
index.js
@@ -348,3 +348,2 @@ 'use strict'; | ||
/* tslint:disable:no-console */ | ||
/***************************************** | ||
@@ -701,2 +700,27 @@ * Authentication | ||
*/ | ||
function getSamlRoles() { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_a) { | ||
console.debug('getSocialLoginsProviders()'); | ||
return [2 /*return*/, Get(SSO_SERVICE_URL_V1 + "/saml/configurations/roles/default")]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function updateSamlRoles(_a) { | ||
var roleIds = _a.roleIds; | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_b) { | ||
console.debug('getSocialLoginsProviders()'); | ||
return [2 /*return*/, Post(SSO_SERVICE_URL_V1 + "/saml/configurations/roles/default", { roleIds: roleIds })]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Get social logins providers configurations for vendor | ||
* @return array of providers configurations | ||
*/ | ||
function getSocialLoginsProviders() { | ||
@@ -840,2 +864,4 @@ return tslib.__awaiter(this, void 0, void 0, function () { | ||
validateSamlDomain: validateSamlDomain, | ||
getSamlRoles: getSamlRoles, | ||
updateSamlRoles: updateSamlRoles, | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
@@ -842,0 +868,0 @@ loginViaSocialLogin: loginViaSocialLogin, |
{ | ||
"name": "@frontegg/rest-api", | ||
"libName": "FronteggRestApi", | ||
"version": "1.16.1-alpha.447338306", | ||
"version": "1.16.1-alpha.447366100", | ||
"author": "Frontegg LTD", | ||
@@ -12,5 +12,5 @@ "module": "index.esm.js", | ||
}, | ||
"gitHead": "4417d61a8e5a56fc37b90f6d66f2cf25e2b8c36e", | ||
"gitHead": "27fe31be4695e66f925bec677b03f4a1f190f114", | ||
"main": "index.js", | ||
"peerDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
388133
5005
8