OneLogin, Inc. is a cloud-based identity and access management (IAM) provider that develops a unified access management (UAM) platform for enterprise-level businesses and organizations.
First, create a OneLogin API credential
Login to your OneLogin account at https://app.onelogin.com/login
From the "Developers" menu, select "API Credentials"
Click "New Credential"
Name the credential, choose the privilege level, and click "Save"
Copy your "Client ID" and "Client Secret" to a text editor and click "Done"
Lastly, create OneLogin credentials in Tines
You will need to create three credentials:
Two Text type: "OneLogin_Client_ID" and "OneLogin_Client_Secret"
One HTTP request type: "OneLogin"
Text type
Navigate to the team that will be using the API and click "Credential"
Click "+ New Credential" and select "Text"
Input the values for the OneLogin credential
Name: OneLogin_Client_ID
Description: Optional
Value: Your Client ID
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
Click "+ New Credential" and select "Text"
Input the values for the OneLogin credential
Name: OneLogin_Client_Secret
Description: Optional
Value: Your Client Secret
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
HTTP request type
Click "+ New Credential" and select "HTTP Request"
Input the values for the OneLogin credential
Name: OneLogin
Description: Optional
URL:
https://<subdomain>.onelogin.com/auth/oauth2/v2/token
Content-Type: JSON
Method: post
Payload: Copy the below object and paste into the "Plain code" section:
{
"grant_type": "client_credentials"
}Headers: Click the "+" button to add the following header:
{
"Authorization": "client_id:<<CREDENTIAL.onelogin_client_id>>, client_secret:<<CREDENTIAL.onelogin_client_secret>>"
}Click "Run options", navigate to the
access_token
key and double-click on the key:
Location of token from response: Paste the path to the token in the value pill
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
Your credential should look like the following:
For more on creating credentials in Tines, click here.
You can also find a selection of OneLogin stories in the story library.