> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Passport Configuration with OneLogin

> Configure Passport with OneLogin in Iru Endpoint for macOS login and password synchronization. Set up the OneLogin app integration and authentication.

<Callout icon="apple" color="#B84A7A" iconType="regular">This guide applies to Mac computers</Callout>

## About Passport with OneLogin

Passport with OneLogin enables users to log into Mac computers using their OneLogin credentials. This integration provides secure authentication using your organization's OneLogin identity system with support for both standard and multi-factor authentication.

## How It Works

Passport integrates with your OneLogin instance using OpenID Connect (OIDC) to authenticate users at the macOS login screen. Whether you need MFA for Passport sign-in determines how many OIDC applications you create in OneLogin and whether you set Authentication mode to Web Login or Mac Login in the Passport Library Item.

<Tabs>
  <Tab title="OneLogin" id="onelogin">
    ## Prerequisites

    * To add apps in OneLogin, use an account that is a Super User or Account Owner.

    ## Configure an OIDC App

    If you do not need MFA for Passport sign-in, set **Authentication mode** to **Mac Login** in the Passport Library Item and follow only the [Mac Login](#onelogin-oidc-mac-login) section (skip [Web Login](#onelogin-oidc-web-login)).

    If you need MFA at sign-in, set **Authentication mode** to **Web Login**. You must create **two** OIDC apps in OneLogin: **Mac Login** first (sign-in and password sync to the Mac), then **Web Login** (MFA in the embedded web view). Follow the **Mac Login** section, then the **Web Login** section, in that order.

    <span id="onelogin-oidc-mac-login" />

    ### Mac Login

    Create the Mac Login OIDC application in OneLogin. This article uses the display name *Iru Passport Mac Login*.

    Every deployment uses this app. With **Mac Login** as the authentication mode, it is the only OneLogin OIDC app you add in this guide. With **Web Login** (MFA), add this app first, then continue to [Web Login](#onelogin-oidc-web-login).

    <Steps>
      <Step title="Log in to OneLogin">
        Log in to OneLogin as an Account owner or Super user.
      </Step>

      <Step title="Navigate to Applications">
        In your OneLogin admin console, navigate to the **Applications** page.
      </Step>

      <Step title="Add new app">
        In the upper-right corner, click **Add App**.
      </Step>

      <Step title="Search for OIDC">
        In the search field in the upper-left corner, enter *OIDC*.
      </Step>

      <Step title="Select OpenID Connect">
        Select **OpenID Connect (OIDC)**.
      </Step>

      <Step title="Configure app details">
        In the **Display Name** field, enter a descriptive name such as *Iru Passport Mac Login*.
      </Step>

      <Step title="Set visibility">
        Click the **Visible in portal** switch to the **Off** position; this app does not need to be visible in order for Passport to work, and it might be confusing for a user to see this app in their OneLogin portal.
      </Step>

      <Step title="Save app">
        Click **Save**.
      </Step>

      <Step title="Access Configuration">
        In the left sidebar, click **Configuration**.
      </Step>

      <Step title="Enter redirect URI">
        In the **Redirect URIs** field, enter the following:

        ```
        https://localhost.redirect
        ```

        <Note>
          Passport doesn't require this value, but you cannot save the app configuration without some value in the Redirect URIs field.
        </Note>
      </Step>

      <Step title="Access SSO settings">
        In the left sidebar, click **SSO**.
      </Step>

      <Step title="Set Application Type">
        Click the **Application Type** menu and select **Native**.
      </Step>

      <Step title="Set Token Endpoint">
        Click the **Token Endpoint** menu and select **None (PKCE)**.
      </Step>

      <Step title="Save SSO configuration">
        Click **Save**.
      </Step>
    </Steps>

    #### Collecting configuration details for Mac Login

    <Steps>
      <Step title="Prepare secure document">
        This OIDC app keeps the Mac password in sync with OneLogin. Open a secure text document that you can use to store values for this OIDC app. You will need the Client ID and Issuer URL details when you configure the Passport Library Item (you don't need the client secret).
      </Step>

      <Step title="Copy Client ID">
        To the right of the **Client ID** field, click the **Copy to Clipboard** button (looks like a clipboard).
      </Step>

      <Step title="Store Client ID">
        Paste the Client ID into the secure text document.
      </Step>

      <Step title="Copy Issuer URL">
        Right-click (or Control-click) the **Well-known Configuration** link and copy its value. The Issuer URL is your OIDC well-known configuration endpoint and follows this pattern:

        ```bash theme={null}
        https://{subdomain}.onelogin.com/oidc/2/.well-known/openid-configuration
        ```
      </Step>

      <Step title="Store Issuer URL">
        Paste the Issuer URL into the secure text document.
      </Step>

      <Step title="Save document">
        Save the secure text document.
      </Step>

      <Step title="Assign app to users">
        In OneLogin, assign the app to the users or groups who will be using Passport to log in to their Mac computers.
      </Step>
    </Steps>

    <Note>
      If you are not using Web Login (no MFA), skip the [Web Login](#onelogin-oidc-web-login) section below, then continue with [Configuring a User Account Type by Identity Provider Group in OneLogin](#configuring-a-user-account-type-by-identity-provider-group-in-onelogin) if you need role-based account types, then open the [Iru Endpoint tab](#iru-endpoint).
    </Note>

    <span id="onelogin-oidc-web-login" />

    ### Web Login

    Use this section only when **Authentication mode** is **Web Login** (MFA). After you finish [Mac Login](#onelogin-oidc-mac-login), create the second OIDC app here. This article uses the display name *Iru Passport Web Login*.

    <Steps>
      <Step title="Navigate to Applications">
        In your OneLogin admin console, navigate to the **Applications** page.
      </Step>

      <Step title="Add new app">
        In the upper-right corner, click **Add App**.

        <Note>
          If the **Add App** button does not appear, it's possible that you previously clicked **See the new apps list**. To make OneLogin display the **Add App** button, remove the string */admin2* from the URL. For example, instead of *[https://accuhive.onelogin.com/admin2/apps](https://accuhive.onelogin.com/admin2/apps)*, use *[https://accuhive.onelogin.com/apps](https://accuhive.onelogin.com/apps)*.
        </Note>
      </Step>

      <Step title="Search for OIDC">
        In the search field in the upper-left corner, enter OIDC.
      </Step>

      <Step title="Select OpenID Connect">
        Select **OpenID Connect (OIDC)**.
      </Step>

      <Step title="Configure app details">
        In the Display Name field, enter a descriptive name such as **Iru Passport Web Login**.
      </Step>

      <Step title="Set visibility">
        Click the **Visible in portal** switch to the **Off** position; this app does not need to be visible in order for Passport to work, and it might be confusing for a user to see this app in their OneLogin portal.
      </Step>

      <Step title="Save app">
        Click **Save**.
      </Step>

      <Step title="Access Configuration">
        In the left sidebar, click **Configuration**.
      </Step>

      <Step title="Enter redirect URI">
        In the **Redirect URIs** field, enter the following:

        ```
        https://localhost.redirect
        ```
      </Step>

      <Step title="Access SSO settings">
        In the left sidebar, click **SSO**.
      </Step>

      <Step title="Set Application Type">
        Click the **Application Type** menu and select **Native**.
      </Step>

      <Step title="Set Authentication Method">
        In the **Token Endpoint** section, click the **Authentication Method** menu and select **POST**. POST is required so users can complete MFA in the web view at Mac sign-in.
      </Step>

      <Step title="Save SSO configuration">
        Click **Save**.
      </Step>
    </Steps>

    #### Collecting configuration details for Web Login

    <Steps>
      <Step title="Prepare secure document">
        This OIDC app supplies the Web Login fields for the Passport Library Item. Open a secure text document that you can use to store values for this OIDC app. You will need the Client ID and Client Secret for this POST app when you configure the Passport Library Item. If you already have a secure document from the Mac Login OIDC app, add a note that the new values are for the Web Login OIDC app.
      </Step>

      <Step title="Copy Client ID">
        Copy the contents of the **Client ID** field.
      </Step>

      <Step title="Store Client ID">
        Paste the Client ID into the secure text document.
      </Step>

      <Step title="Show client secret">
        Click **Show client secret**.
      </Step>

      <Step title="Copy client secret">
        Copy the client secret.
      </Step>

      <Step title="Store client secret">
        Paste the client secret into the secure text document.
      </Step>

      <Step title="Save document">
        Save the secure document.
      </Step>

      <Step title="Assign app to users">
        In OneLogin, assign the app to the users or groups who will sign in with Web Login (MFA).
      </Step>
    </Steps>

    ## Configuring a User Account Type by Identity Provider Group in OneLogin

    Use this section when you map OneLogin roles to standard or administrator Mac accounts in Passport. It applies for both Mac Login (no MFA) and Web Login (MFA).

    When configuring whether a user will be a standard user or an admin user, follow the steps below.

    <Steps>
      <Step title="Access Roles">
        Log in to your OneLogin Console. Select Users > Roles.

        <Frame>
          <img src="https://mintcdn.com/iru/mol1UbnodotF3fFx/assets/media/images/hrnf_mauejezxybgrxqzgt2y5tgxqm8rna.png?fit=max&auto=format&n=mol1UbnodotF3fFx&q=85&s=16c56ffcb121f3f04a551774097a9a81" alt="OneLogin Console Users and Roles section showing New Role option for Passport user account type" width="1193" height="692" data-path="assets/media/images/hrnf_mauejezxybgrxqzgt2y5tgxqm8rna.png" />
        </Frame>
      </Step>

      <Step title="Create new role">
        Select **New Role** on the top right of the screen, and name your role. (*You will want to make sure your role name matches the IDP group name that you are using in your Iru Passport configuration).* In this example, the role is named Passport Admin Users. Finally, select your Iru Passport app that you created in OneLogin and click **Save** on the top right of the screen.

        <Frame>
          <img src="https://mintcdn.com/iru/mol1UbnodotF3fFx/assets/media/images/jdkwvq1rjuouis2jxr0jl6yvarwalyesoa.png?fit=max&auto=format&n=mol1UbnodotF3fFx&q=85&s=3f22b55ef744824e7fc3d5590f3586a6" alt="OneLogin New Role dialog showing role name and Iru Passport app selection with Save button" width="2558" height="974" data-path="assets/media/images/jdkwvq1rjuouis2jxr0jl6yvarwalyesoa.png" />
        </Frame>
      </Step>

      <Step title="Configure app parameters">
        Next, navigate to the Iru Passport app that you created in OneLogin. Select the **parameters** link and click the **Groups** field.

        <Frame>
          <img src="https://mintcdn.com/iru/1OVymKHk38EquoaD/assets/media/images/wy6ejvxelio9l3bfjxgltrehxs6snjhnqa.png?fit=max&auto=format&n=1OVymKHk38EquoaD&q=85&s=197c75752d93e6ef1549b74e1b7003e6" alt="OneLogin Iru Passport app parameters showing Groups field for role mapping" width="2566" height="1035" data-path="assets/media/images/wy6ejvxelio9l3bfjxgltrehxs6snjhnqa.png" />
        </Frame>
      </Step>

      <Step title="Set default value">
        In the "Default if no value selected" section, select User Roles from the drop-down list and make sure Semicolon Delimited Input is selected. Click **Save**.

        <Frame>
          <img src="https://mintcdn.com/iru/5ryqSIBTtSipAcVd/assets/media/images/_votu0ubqnrcjda-k66lebnndtthsjcjqa.png?fit=max&auto=format&n=5ryqSIBTtSipAcVd&q=85&s=95d73e5b90a66a6b47cdeded9ed25aac" alt="OneLogin Groups parameter configuration showing Default if no value selected with User Roles and Semicolon Delimited Input" width="2562" height="1001" data-path="assets/media/images/_votu0ubqnrcjda-k66lebnndtthsjcjqa.png" />
        </Frame>
      </Step>

      <Step title="Assign users to role">
        Finally, make sure your users are part of the role that you are creating, as well as a member of the Iru Passport application in OneLogin. To add a user to a role, select Users > Roles > *your role name (for example, Passport Admin Users)*, select the **Users** link, search for the user, click the blue **check box**, click the **Add to Role** link, and then click **Save** at the top right of the page.

        <Frame>
          <img src="https://mintcdn.com/iru/1OVymKHk38EquoaD/assets/media/images/ys8ehjq1tqzqmig6rgaxe9jyps6zj-urzg.png?fit=max&auto=format&n=1OVymKHk38EquoaD&q=85&s=e47cd3584146a317284c2673002a97e0" alt="OneLogin Users and Roles showing Add to Role link for assigning users to Passport role" width="2557" height="1093" data-path="assets/media/images/ys8ehjq1tqzqmig6rgaxe9jyps6zj-urzg.png" />
        </Frame>
      </Step>
    </Steps>

    <Note>
      When OIDC apps and roles in OneLogin match what you need, open the [Iru Endpoint tab](#iru-endpoint) to enter values in the Passport Library Item. On that tab, User provisioning includes an example when a OneLogin role supplies the administrator group name.
    </Note>
  </Tab>

  <Tab title="Iru Endpoint" id="iru-endpoint">
    If you have not already, use [Configure the Passport Library Item](/en/endpoint/library/passport/configure-the-passport-library-item) to add the Passport Library Item and basic settings. The steps below are the Iru Endpoint steps specific to OneLogin Passport; use the values you collected on the [OneLogin tab](#onelogin).

    ### Authentication Mode

    Set **Authentication mode** in the Passport Library Item to match how users sign in with OneLogin. Use **Web Login** when MFA applies, and **Mac Login** when it does not.

    In OneLogin you always configure the Mac Login OIDC app; add the Web Login OIDC app as the second app when you use MFA, as on the [OneLogin tab](#onelogin).

    #### Web Login

    If you use multi-factor authentication with Passport, you must use **Web Login** as the authentication mode so users can complete MFA during sign-in. You should already have created two OIDC apps in OneLogin (Mac Login, then Web Login).

    When **Identity provider** in the Passport Library Item is **OneLogin** and **Authentication mode** is **Web Login**, the **second** OneLogin OIDC application must use the **POST** authentication method on the token endpoint (see the [Web Login](#onelogin-oidc-web-login) OIDC app steps on the [OneLogin tab](#onelogin)). Enter that second application's client ID in **Client ID (Web Authentication)**, the redirect URI in **Redirect URI**, and the client secret in **Client secret** on the Library Item (steps below).

    <Steps>
      <Step title="Select OneLogin identity provider">
        In the Passport Library Item, set **Identity provider** to **OneLogin**.
      </Step>

      <Step title="Enter Identity provider URL">
        In the **Identity provider URL** field, enter the OIDC well-known configuration URL (Issuer URL) from the **Mac Login** OIDC app you collected on the [OneLogin tab](#onelogin). It follows this pattern:

        ```bash theme={null}
        https://{subdomain}.onelogin.com/oidc/2/.well-known/openid-configuration
        ```
      </Step>

      <Step title="Enter Client ID (Password Sync)">
        In the **Client ID (Password Sync)** field, enter the Client ID from the **Mac Login** OIDC application on the [OneLogin tab](#onelogin).
      </Step>

      <Step title="Select Web Login">
        Under **Authentication mode**, select **Web Login**.
      </Step>

      <Step title="Enter Client ID (Web Authentication)">
        In the **Client ID (Web Authentication)** field, enter the client ID from the Web Login OIDC application you collected on the [OneLogin tab](#onelogin).
      </Step>

      <Step title="Enter redirect URI">
        In the **Redirect URI** field, enter the following:

        ```
        https://localhost.redirect
        ```
      </Step>

      <Step title="Enter Client secret">
        In the **Client secret** field, enter the client secret from the Web Login OIDC application in OneLogin.
      </Step>

      <Step title="Save configuration">
        Click **Save**.
      </Step>
    </Steps>

    #### Mac Login

    If you are not using MFA with Passport, use **Mac Login** as the authentication mode. Users sign in with their OneLogin password at the Mac login window without the Web Login MFA flow. You should already have created one OIDC app in OneLogin (Mac Login only).

    <Steps>
      <Step title="Select OneLogin identity provider">
        In the Passport Library Item, set **Identity provider** to **OneLogin**.
      </Step>

      <Step title="Enter Identity provider URL">
        In the **Identity provider URL** field, enter the OIDC well-known configuration URL from the **Mac Login** OIDC app you collected on the [OneLogin tab](#onelogin). It follows this pattern:

        ```bash theme={null}
        https://{subdomain}.onelogin.com/oidc/2/.well-known/openid-configuration
        ```
      </Step>

      <Step title="Enter Client ID (Password Sync)">
        In the **Client ID (Password Sync)** field, enter the Client ID from the **Mac Login** OIDC application on the [OneLogin tab](#onelogin).
      </Step>

      <Step title="Select Mac Login">
        Under **Authentication mode**, select **Mac Login**.
      </Step>

      <Step title="Save configuration">
        Click **Save**.
      </Step>
    </Steps>

    ### User Provisioning

    If you want Passport to set each user's Mac account type from OneLogin roles, complete [Configuring a User Account Type by Identity Provider Group in OneLogin](#configuring-a-user-account-type-by-identity-provider-group-in-onelogin) first. Use the **User provisioning** steps below on the Passport Library Item [**Iru Endpoint** tab](#iru-endpoint).

    <Steps>
      <Step title="Configure user account type">
        In the Passport Library Item, open the User account type menu in the User provisioning section and select **Specify per identity provider group**.
      </Step>

      <Step title="Choose fallback account type">
        With **User account type** set to **Specify per identity provider group**, open the account type drop-down below it and select Administrator or Standard user. If a user's IdP group membership returns both Administrator and Standard account types, the user is designated an Administrator.
      </Step>

      <Step title="Enter role names">
        In each **Identity provider group** field, enter a role name that matches your OneLogin configuration.
      </Step>

      <Step title="Set account types">
        For each **Identity provider group** row, set the **Account type** as appropriate.

        <Frame>
          <img src="https://mintcdn.com/iru/TrNeDzYbuegnhNyr/assets/media/images/o2sdvxbp2imv51ypmhu2lxi9e6y0re0zba.png?fit=max&auto=format&n=TrNeDzYbuegnhNyr&q=85&s=a1bb808efd658b023a834b1f59e58cd4" alt="Iru Passport Library Item configuration showing Groups field for admin user role from OneLogin" width="1465" height="703" data-path="assets/media/images/o2sdvxbp2imv51ypmhu2lxi9e6y0re0zba.png" />
        </Frame>
      </Step>
    </Steps>

    <Note>
      When the Passport Library Item is saved, return to the [OneLogin tab](#onelogin) if you need to change OIDC apps or role mappings.
    </Note>
  </Tab>
</Tabs>

If you experience any issues with Passport and OneLogin, read [Passport Troubleshooting with OneLogin](/en/endpoint/library/passport/onelogin/passport-troubleshooting-with-onelogin).
