Skip to main content
OneLogin Authentication Guide

How to authenticate OneLogin for use with Tines

Daniel Stoeski avatar
Written by Daniel Stoeski
Updated over a year ago

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

  1. Login to your OneLogin account at https://app.onelogin.com/login

  2. From the "Developers" menu, select "API Credentials"


  3. Click "New Credential"


  4. Name the credential, choose the privilege level, and click "Save"


  5. 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

  1. Navigate to the team that will be using the API and click "Credential"

  2. Click "+ New Credential" and select "Text"

  3. Input the values for the OneLogin credential

    1. Name: OneLogin_Client_ID

    2. Description: Optional

    3. Value: Your Client ID

  4. Optional

    1. Domains: Ensure this credential can only be used when making HTTP requests to specific domains

    2. Access: What other teams can also use the API

  5. Click "Save"

  6. Click "+ New Credential" and select "Text"

  7. Input the values for the OneLogin credential

    1. Name: OneLogin_Client_Secret

    2. Description: Optional

    3. Value: Your Client Secret

  8. Optional

    1. Domains: Ensure this credential can only be used when making HTTP requests to specific domains

    2. Access: What other teams can also use the API

  9. Click "Save"

HTTP request type

  1. Click "+ New Credential" and select "HTTP Request"

  2. Input the values for the OneLogin credential

    1. Name: OneLogin

    2. Description: Optional

    3. URL: https://<subdomain>.onelogin.com/auth/oauth2/v2/token

    4. Content-Type: JSON

    5. Method: post

    6. Payload: Copy the below object and paste into the "Plain code" section:

      {
      "grant_type": "client_credentials"
      }

    7. Headers: Click the "+" button to add the following header:

      {
      "Authorization": "client_id:<<CREDENTIAL.onelogin_client_id>>, client_secret:<<CREDENTIAL.onelogin_client_secret>>"
      }

    8. Click "Run options", navigate to the access_token key and double-click on the key:


    9. Location of token from response: Paste the path to the token in the value pill

  3. Optional

    1. Domains: Ensure this credential can only be used when making HTTP requests to specific domains

    2. Access: What other teams can also use the API

  4. 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.

Did this answer your question?