Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onelogin/sdk

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onelogin/sdk

NodeJS client for @onelogin/sdk

  • 3.0.0-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

one_login_api

OneLoginApi - JavaScript client for one_login_api No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 3.0.0-alpha.1
  • Package version: 3.0.0-alpha.1
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install one_login_api --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your one_login_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build
git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var OneLoginApi = require('one_login_api');


var api = new OneLoginApi.DefaultApi()
var authorization = "authorization_example"; // {String} 
var userId = 56; // {Number} Set to the id of the user.
var activateFactorRequest = new OneLoginApi.ActivateFactorRequest(); // {ActivateFactorRequest} 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.activateFactor(authorization, userId, activateFactorRequest, callback);

Documentation for API Endpoints

All URIs are relative to https://onelogininc.onelogin.com

ClassMethodHTTP requestDescription
OneLoginApi.DefaultApiactivateFactorPOST /api/2/mfa/users/{user_id}/verifications
OneLoginApi.DefaultApiaddAccessTokenClaimPOST /api/2/api_authorizations/{id}/claims
OneLoginApi.DefaultApiaddClientAppPOST /api/2/api_authorizations/{id}/clients
OneLoginApi.DefaultApiaddRoleAdminsPOST /api/2/roles/{role_id}/admins
OneLoginApi.DefaultApiaddRoleUsersPOST /api/2/roles/{role_id}/users
OneLoginApi.DefaultApiaddScopePOST /api/2/api_authorizations/{id}/scopes
OneLoginApi.DefaultApibulkMappingSortPUT /api/2/apps/mappings/sort
OneLoginApi.DefaultApibulkSortPUT /api/2/apps/{app_id}/rules/sort
OneLoginApi.DefaultApicreateAppPOST /api/2/apps
OneLoginApi.DefaultApicreateAuthorizationServerPOST /api/2/api_authorizations
OneLoginApi.DefaultApicreateEnvironmentVariablePOST /api/2/hooks/envs
OneLoginApi.DefaultApicreateHookPOST /api/2/hooks
OneLoginApi.DefaultApicreateMappingPOST /api/2/mappings
OneLoginApi.DefaultApicreateRiskRulePOST /api/2/risk/rules
OneLoginApi.DefaultApicreateRolesPOST /api/2/roles
OneLoginApi.DefaultApicreateRulePOST /api/2/apps/{app_id}/rules
OneLoginApi.DefaultApicreateUserPOST /api/2/users
OneLoginApi.DefaultApideleteAccessTokenClaimDELETE /api/2/api_authorizations/{id}/claims/{claim_id}
OneLoginApi.DefaultApideleteAppDELETE /api/2/apps/{app_id}
OneLoginApi.DefaultApideleteAppParameterDELETE /api/2/apps/{app_id}/parameters/{parameter_id}
OneLoginApi.DefaultApideleteAuthorizationServerDELETE /api/2/api_authorizations/{id}
OneLoginApi.DefaultApideleteEnvironmentVariableDELETE /api/2/hooks/envs/{envvar_id}
OneLoginApi.DefaultApideleteFactorDELETE /api/2/mfa/users/{user_id}/devices/{device_id}
OneLoginApi.DefaultApideleteHookDELETE /api/2/hooks/{hook_id}
OneLoginApi.DefaultApideleteMappingDELETE /api/2/mappings/{mapping_id}
OneLoginApi.DefaultApideleteRiskRuleDELETE /api/2/risk/rules/{risk_rule_id}
OneLoginApi.DefaultApideleteRoleDELETE /api/2/roles/{role_id}
OneLoginApi.DefaultApideleteRuleDELETE /api/2/apps/{app_id}/rules/{rule_id}
OneLoginApi.DefaultApideleteScopeDELETE /api/2/api_authorizations/{id}/scopes/{scope_id}
OneLoginApi.DefaultApideleteUserDELETE /api/2/users/{user_id}
OneLoginApi.DefaultApidryRunMappingPOST /api/2/mappings/{mapping_id}/dryrun
OneLoginApi.DefaultApienrollFactorPOST /api/2/mfa/users/{user_id}/registrations
OneLoginApi.DefaultApigenerateMfaTokenPOST /api/2/mfs/users/{user_id}/mfa_token
OneLoginApi.DefaultApigenerateSamlAssertionPOST /api/2/saml_assertion
OneLoginApi.DefaultApigenerateTokenPOST /auth/oauth2/v2/token
OneLoginApi.DefaultApigetAppGET /api/2/apps/{app_id}
OneLoginApi.DefaultApigetAuthorizationServerGET /api/2/api_authorizations/{id}
OneLoginApi.DefaultApigetAvailableFactorsGET /api/2/mfa/users/{user_id}/factors
OneLoginApi.DefaultApigetClientAppsGET /api/2/api_authorizations/{id}/clients
OneLoginApi.DefaultApigetEnrolledFactorsGET /api/2/mfa/users/{user_id}/devices
OneLoginApi.DefaultApigetEnvironmentVariableGET /api/2/hooks/envs/{envvar_id}
OneLoginApi.DefaultApigetHookGET /api/2/hooks/{hook_id}
OneLoginApi.DefaultApigetLogsGET /api/2/hooks/{hook_id}/logs
OneLoginApi.DefaultApigetMappingGET /api/2/mappings/{mapping_id}
OneLoginApi.DefaultApigetRateLimitGET /auth/rate_limit
OneLoginApi.DefaultApigetRiskRuleGET /api/2/risk/rules/{risk_rule_id}
OneLoginApi.DefaultApigetRiskScorePOST /api/2/risk/verify
OneLoginApi.DefaultApigetRoleGET /api/2/roles/{role_id}
OneLoginApi.DefaultApigetRoleAdminsGET /api/2/roles/{role_id}/admins
OneLoginApi.DefaultApigetRoleAppsGET /api/2/roles/{role_id}/apps
OneLoginApi.DefaultApigetRoleUsersGET /api/2/roles/{role_id}/users
OneLoginApi.DefaultApigetRuleGET /api/2/apps/{app_id}/rules/{rule_id}
OneLoginApi.DefaultApigetScoreInsightsGET /api/2/risk/scores
OneLoginApi.DefaultApigetUserGET /api/2/users/{user_id}
OneLoginApi.DefaultApigetUserAppsGET /api/2/users/{user_id}/apps
OneLoginApi.DefaultApilistAccessTokenClaimsGET /api/2/api_authorizations/{id}/claims
OneLoginApi.DefaultApilistActionValuesGET /api/2/apps/{app_id}/rules/actions/{actuion_value}/values
OneLoginApi.DefaultApilistActionsGET /api/2/apps/{app_id}/rules/actions
OneLoginApi.DefaultApilistAppUsersGET /api/2/apps/{app_id}/users
OneLoginApi.DefaultApilistAppsGET /api/2/apps
OneLoginApi.DefaultApilistAuthorizationServersGET /api/2/api_authorizations
OneLoginApi.DefaultApilistConditionOperatorsGET /api/2/apps/{app_id}/rules/conditions/{condition_value}/operators
OneLoginApi.DefaultApilistConditionValuesGET /api/2/apps/{app_id}/rules/conditions/{condition_value}/values
OneLoginApi.DefaultApilistConditionsGET /api/2/apps/{app_id}/rules/conditions
OneLoginApi.DefaultApilistConnectorsGET /api/2/connectors
OneLoginApi.DefaultApilistEnvironmentVariablesGET /api/2/hooks/envs
OneLoginApi.DefaultApilistHooksGET /api/2/hooks
OneLoginApi.DefaultApilistMappingActionValuesGET /api/2/apps/mappings/actions/{actuion_value}/values
OneLoginApi.DefaultApilistMappingActionsGET /api/2/apps/mappings/actions
OneLoginApi.DefaultApilistMappingConditionOperatorsGET /api/2/apps/mappings/conditions/{condition_value}/operators
OneLoginApi.DefaultApilistMappingConditionValuesGET /api/2/apps/mappings/conditions/{condition_value}/values
OneLoginApi.DefaultApilistMappingConditionsGET /api/2/apps/mappings/conditions
OneLoginApi.DefaultApilistMappingsGET /api/2/mappings
OneLoginApi.DefaultApilistRiskRulesGET /api/2/risk/rules
OneLoginApi.DefaultApilistRolesGET /api/2/roles
OneLoginApi.DefaultApilistRulesGET /api/2/apps/{app_id}/rules
OneLoginApi.DefaultApilistScopesGET /api/2/api_authorizations/{id}/scopes
OneLoginApi.DefaultApilistUsersGET /api/2/users
OneLoginApi.DefaultApiremoveClientAppDELETE /api/2/api_authorizations/{id}/clients/{client_app_id}
OneLoginApi.DefaultApiremoveRoleAdminsDELETE /api/2/roles/{role_id}/admins
OneLoginApi.DefaultApiremoveRoleUsersDELETE /api/2/roles/{role_id}/users
OneLoginApi.DefaultApirevokeTokenPOST /auth/oauth2/revoke
OneLoginApi.DefaultApisetRoleAppsPUT /api/2/roles/{role_id}/apps
OneLoginApi.DefaultApitrackEventPOST /api/2/risk/events
OneLoginApi.DefaultApiupdateAccessTokenClaimPUT /api/2/api_authorizations/{id}/claims/{claim_id}
OneLoginApi.DefaultApiupdateAppPUT /api/2/apps/{app_id}
OneLoginApi.DefaultApiupdateAuthorizationServerPUT /api/2/api_authorizations/{id}
OneLoginApi.DefaultApiupdateClientAppPUT /api/2/api_authorizations/{id}/clients/{client_app_id}
OneLoginApi.DefaultApiupdateEnvironmentVariablePUT /api/2/hooks/envs/{envvar_id}
OneLoginApi.DefaultApiupdateHookPUT /api/2/hooks/{hook_id}
OneLoginApi.DefaultApiupdateMappingPUT /api/2/mappings/{mapping_id}
OneLoginApi.DefaultApiupdateRiskRulePUT /api/2/risk/rules/{risk_rule_id}
OneLoginApi.DefaultApiupdateRolePUT /api/2/roles/{role_id}
OneLoginApi.DefaultApiupdateRulePUT /api/2/apps/{app_id}/rules/{rule_id}
OneLoginApi.DefaultApiupdateScopePUT /api/2/api_authorizations/{id}/scopes/{scope_id}
OneLoginApi.DefaultApiupdateUserPUT /api/2/users/{user_id}
OneLoginApi.DefaultApiverifyEnrollmentPUT /api/2/mfa/users/{user_id}/registrations/{registration_id}
OneLoginApi.DefaultApiverifyEnrollmentVoiceProtectGET /api/2/mfa/users/{user_id}/registrations/{registration_id}
OneLoginApi.DefaultApiverifyFactorPUT /api/2/mfa/users/{user_id}/verifications/{verification_id}
OneLoginApi.DefaultApiverifyFactorSamlPOST /api/2/saml_assertion/verify_factor
OneLoginApi.DefaultApiverifyFactorVoiceGET /api/2/mfa/users/{user_id}/verifications/{verification_id}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc