Module: OneLogin::Api::Util::Constants

Included in:
OneLogin::Api::Util
Defined in:
lib/onelogin/api/util/constants.rb

Overview

Constants class of the OneLogin's Ruby SDK.

This class defines all the constants that will be used in the OneLogin's Ruby SDK.

Constant Summary collapse

TOKEN_REQUEST_URL =

OAuth2 Tokens URLs

"https://api.%s.onelogin.com/auth/oauth2/v2/token"
TOKEN_REFRESH_URL =
"https://api.%s.onelogin.com/auth/oauth2/v2/token"
TOKEN_REVOKE_URL =
"https://api.%s.onelogin.com/auth/oauth2/revoke"
GET_RATE_URL =
"https://api.%s.onelogin.com/auth/rate_limit"
GET_USERS_URL =

User URLs

"https://api.%s.onelogin.com/api/1/users"
GET_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s"
GET_APPS_FOR_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/apps"
GET_ROLES_FOR_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/roles"
GET_CUSTOM_ATTRIBUTES_URL =
"https://api.%s.onelogin.com/api/1/users/custom_attributes"
CREATE_USER_URL =
"https://api.%s.onelogin.com/api/1/users"
SESSION_LOGIN_TOKEN_URL =
"https://api.%s.onelogin.com/api/1/login/auth"
GET_TOKEN_VERIFY_FACTOR =
"https://api.%s.onelogin.com/api/1/login/verify_factor"
UPDATE_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s"
DELETE_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s"
ADD_ROLE_TO_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/add_roles"
DELETE_ROLE_TO_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/remove_roles"
SET_PW_CLEARTEXT =
"https://api.%s.onelogin.com/api/1/users/set_password_clear_text/%s"
SET_PW_SALT =
"https://api.%s.onelogin.com/api/1/users/set_password_using_salt/%s"
SET_CUSTOM_ATTRIBUTE_TO_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/set_custom_attributes"
SET_USER_STATE_URL =
"https://api.%s.onelogin.com/api/1/users/%s/set_state"
LOG_USER_OUT_URL =
"https://api.%s.onelogin.com/api/1/users/%s/logout"
LOCK_USER_URL =
"https://api.%s.onelogin.com/api/1/users/%s/lock_user"
GENERATE_MFA_TOKEN_URL =
"https://api.%s.onelogin.com/api/1/users/%s/mfa_token"
GET_CONNECTORS_URL =

Connectors URL

"https://api.%s.onelogin.com/api/2/connectors"
GET_APPS_URL_V1 =

V1

"https://api.%s.onelogin.com/api/1/apps"
GET_APPS_URL =

V2

"https://api.%s.onelogin.com/api/2/apps"
CREATE_APP_URL =
"https://api.%s.onelogin.com/api/2/apps"
GET_APP_URL =
"https://api.%s.onelogin.com/api/2/apps/%s"
UPDATE_APP_URL =
"https://api.%s.onelogin.com/api/2/apps/%s"
DELETE_APP_URL =
"https://api.%s.onelogin.com/api/2/apps/%s"
DELETE_APP_PARAMETER_URL =
"https://api.%s.onelogin.com/api/2/apps/%s/parameters/%s"
GET_ROLES_URL =

Role URLs

"https://api.%s.onelogin.com/api/1/roles"
CREATE_ROLE_URL =
"https://api.%s.onelogin.com/api/1/roles"
GET_ROLE_URL =
"https://api.%s.onelogin.com/api/1/roles/%s"
GET_EVENT_TYPES_URL =

Event URLS

"https://api.%s.onelogin.com/api/1/events/types"
GET_EVENTS_URL =
"https://api.%s.onelogin.com/api/1/events"
CREATE_EVENT_URL =
"https://api.%s.onelogin.com/api/1/events"
GET_EVENT_URL =
"https://api.%s.onelogin.com/api/1/events/%s"
GET_GROUPS_URL =

Group URLs

"https://api.%s.onelogin.com/api/1/groups"
CREATE_GROUP_URL =
"https://api.%s.onelogin.com/api/1/groups"
GET_GROUP_URL =
"https://api.%s.onelogin.com/api/1/groups/%s"
GET_SAML_ASSERTION_URL =

SAML Assertion URLs

"https://api.%s.onelogin.com/api/1/saml_assertion"
GET_SAML_VERIFY_FACTOR =
"https://api.%s.onelogin.com/api/1/saml_assertion/verify_factor"
GET_FACTORS_URL =

Multi-Factor Authentication URLs

"https://api.%s.onelogin.com/api/1/users/%s/auth_factors"
ENROLL_FACTOR_URL =
"https://api.%s.onelogin.com/api/1/users/%s/otp_devices"
GET_ENROLLED_FACTORS_URL =
"https://api.%s.onelogin.com/api/1/users/%s/otp_devices"
ACTIVATE_FACTOR_URL =
"https://api.%s.onelogin.com/api/1/users/%s/otp_devices/%s/trigger"
VERIFY_FACTOR_URL =
"https://api.%s.onelogin.com/api/1/users/%s/otp_devices/%s/verify"
REMOVE_FACTOR_URL =
"https://api.%s.onelogin.com/api/1/users/%s/otp_devices/%s"
"https://api.%s.onelogin.com/api/1/invites/get_invite_link"
"https://api.%s.onelogin.com/api/1/invites/send_invite_link"
EMBED_APP_URL =

Embed Apps URL

"https://api.onelogin.com/client/apps/embed2"
LIST_PRIVILEGES_URL =

Privileges URLS

"https://api.%s.onelogin.com/api/1/privileges"
CREATE_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges"
UPDATE_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s"
GET_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s"
DELETE_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s"
GET_ROLES_ASSIGNED_TO_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/roles"
ASSIGN_ROLES_TO_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/roles"
REMOVE_ROLE_FROM_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/roles/%s"
GET_USERS_ASSIGNED_TO_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/users"
ASSIGN_USERS_TO_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/users"
REMOVE_USER_FROM_PRIVILEGE_URL =
"https://api.%s.onelogin.com/api/1/privileges/%s/users/%s"
VALID_ACTIONS =
[
  "apps:List",
  "apps:Get",
  "apps:Create",
  "apps:Update",
  "apps:Delete",
  "apps:ManageRoles",
  "apps:ManageUsers",
  "directories:List",
  "directories:Get",
  "directories:Create",
  "directories:Update",
  "directories:Delete",
  "directories:SyncUsers",
  "directories:RefreshSchema",
  "events:List",
  "events:Get",
  "mappings:List",
  "mappings:Get",
  "mappings:Create",
  "mappings:Update",
  "mappings:Delete",
  "mappings:ReapplyAll",
  "policies:List",
  "policies:user:Get",
  "policies:user:Create",
  "policies:user:Update",
  "policies:user:Delete",
  "policies:app:Get",
  "policies:app:Create",
  "policies:app:Update",
  "policies:app:Delete",
  "privileges:List",
  "privileges:Get",
  "privileges:Create",
  "privileges:Update",
  "privileges:Delete",
  "privileges:ListUsers",
  "privileges:ListRoles",
  "privileges:ManageUsers",
  "privileges:ManageRoles",
  "reports:List",
  "reports:Get",
  "reports:Create",
  "reports:Update",
  "reports:Delete",
  "reports:Run",
  "roles:List",
  "roles:Get",
  "roles:Create",
  "roles:Update",
  "roles:Delete",
  "roles:ManageUsers",
  "roles:ManageApps",
  "trustedidp:List",
  "trustedidp:Get",
  "trustedidp:Create",
  "trustedidp:Update",
  "trustedidp:Delete",
  "users:List",
  "users:Get",
  "users:Create",
  "users:Update",
  "users:Delete",
  "users:Unlock",
  "users:ResetPassword",
  "users:ForceLogout",
  "users:Invite",
  "users:ReapplyMappings",
  "users:ManageRoles",
  "users:ManageApps",
  "users:GenerateTempMfaToken"
]