Integrate Third-party Authentication with OpenID Connect

You can integrate a third-party authentication provider with person authentication in the Conductor using OpenID Connect (OIDC). If your users are already configured for single sign-on (SSO) with a third party, or if you have a large number of users, this integration streamlines your user management.

Note: You can only configure one OpenID Connect provider on the Conductor at a time. If you need to support many OIDC authentication providers simultaneously, you can choose providers that support federated login so you can connect to one provider and have that provider connect to other providers to authenticate users.
Important: To use OpenID Connect on macOS or iOS Airwall Agents, you must have a public certificate on your Conductor.

User Roles

In the Airwall Conductor, you configure person roles in OIDC by including them in groups. The OIDC group names are pre-configured in the Conductor, so when you make a person a member of one of the OIDC groups in the OIDC provider, they are automatically given that role in the Conductor. For instance, you can declare that all members of the OIDC provider’s cond_system_admins group are system administrators in the Conductor, and that members of the OIDC cond_remote_users group are remote-access users.

Multi-factor Authentication

If your OIDC provider supports a multi-factor authentication (MFA) protocols, you can use MFA on your provider to require MFA for logging into your Conductor or for Airwall Agent session authentication.

Integrate Authentication with the Conductor

To successfully integrate authentication, you must

  1. Create and configure an application in your authentication provider.
  2. Configure OIDC on the Conductor.
  3. Set up Airwall Agents.
  4. Verify third-party authentication is working

Since each provider is different, refer to the basics required here, and then the Provider-specific instructions that follow for integrating with some popular providers that support OIDC.

1. Create and configure an application in your authentication provider

Create and configure the application in your provider using the Provider-specific Instructions before connecting it to the Airwall Conductor. Each provider’s workflow is different, but here are the general steps:

  1. Create an OpenID Connect application.
  2. Configure it with the following information:
    Field Enter
    Name Whatever you want. For example, “Airwall Conductor
    Login Redirect URI

    Your Conductor URI followed by /user/auth/openid_connect/callback. For example: https://conductor.mycompany.com/user/auth/openid_connect/callback.

    Note – If your Conductor is HA paired, add a second login redirect URI, with the same path added.

    Logout Redirect URI Your Conductor URI: https://conductor.mycompany.com
  3. Depending on your provider, set the authentication method to basic, or indicate you are using an authorization code for authentication (not a refresh token).
  4. Allow the groups claim for grant. The groups claim is what allows the Conductor to match a user’s group with what role they are given. Because groups is not a default OIDC claim, it must be turned on in the provider. For more details, see the Provider-specific instructions.
  5. Create four groups: cond_system_admins, cond_readonly_admins, cond_network_admins, and cond_remote_users to indicate the four different Conductor roles.
  6. Add users to each group so they are assigned the correct role when logging into Conductor.
  7. Give your users access to the application you created in your provider.
  8. If you want to require MFA to log in, set it up in the OIDC provider. Generally MFA is associated with the app. Please consult your provider documentation for detailed instructions on setting up MFA.

2. Configure OIDC on the Airwall Conductor

  1. Go to Conductor Settings.
  2. Next to Authentication, select Add provider.
  3. Select OpenID Connect and then select Next.
  4. On the Add Authentication Provider page, under General settings, configure the Provider settings as follows (see the Provider-specific Instructions for help in finding this information):
    For this Setting Enter
    Provider Name Give your provider a descriptive name. This name appears as an option when logging into the Conductor.
    Conductor host Host of your Conductor. Must be in the format https://conductor.mycompany.com (no trailing slash)
    OpenID Connect host Must be in the format https://hostname.com:{optional port}
    Issuer Issuer provided by your OIDC provider. Sometimes this value is the same as the OpenID Connect host depending on the provider.
    Client ID (sometimes called Identifier) Token provided by your OIDC provider associated with the provider application
    Secret Secret token that goes with the Client ID
  5. For HA-paired Conductor host, enter the Host of your HA Conductor (if applicable).
  6. Configure the Group settings as follows, and then click Next:
    For this Setting Enter
    Use groups to manage roles Checked
    System admin groups Comma-separated list of groups from your provider that will give your user this role.
    Read-only admin groups Comma-separated list of groups from your provider that will give your user this role.
    Network admin groups Comma-separated list of groups from your provider that will give your user this role.
    Remote-access user groups Comma-separated list of groups from your provider that will give your user this role.
    Note: If users are in groups that match more than one of the roles, they are given the highest level of access possible (system admin, read-only admin, network admin, then remote-access user).
  7. Configure any Group filters you want, and click Finish.
  8. If you have non-public DNS servers configured in the Conductor under Global Airwall Agent/client settings, your users won’t be able to reach the public addresses on their devices that include the OpenID Connect providers. You may need to configure DNS servers on the Conductor to add your OpenID Connect provider’s DNS server.
  9. After changing OIDC configuration, you need to log out and log back in to the Conductor to restart it. When you log back in, you can now choose your third-party authentication provider.

3. Set up the Airwall Agents

Any Airwall Agents authenticating using your third-party provider also need to be set up:

  1. Provision and License Airwall Edge Services in the Conductor.
  2. Go to the Overlays page, scroll down to People, and click Update, and add the Airwall Agent as a member.
  3. Also check that:
    1. Airwall Agents are included in your Airwall Relay rules.
    2. Airwall Agent devices have been added to the appropriate Overlays, and you’ve set device trust on the Overlays as needed.
Your users should now be able to log in using the third-party authentication provider.

Require third-party authentication

You can also require users to authenticate using the third-party provider either individually or as a group (in 2.2.3 and later Conductors). On the agent's Airwall Agent tab, or on a People Group Properties tab:

  • Check the Require authenticated Airwall session box.
  • Under Provider, choose the third-party authentication provider you created.

Provider-specific Instructions

Here are specific instructions for a few of the common third-party authentication providers. Note your provider’s documentation may be more up-to-date.

Okta - Create Application and Set Up Group Claims

Create an Application

  1. In Okta, go to Applications.
  2. Select Add Application.
  3. Under Create New Application, select Web.
  4. Set Allowed grant type to Authorization code.
  5. Set the OpenID Connect host to the same value as the Issuer in Conductor. This value is found on the under OpenID Connect ID Token on the Sign on tab.
  6. Note the Client ID and Secret that are in your application, on the General tab under Client Credentials.
  7. Set up Groups Claim (see below).

Set up Groups Claim

To set up Okta to allow the groups claim in OpenID Connect, use the Classic UI.

  1. In Okta Authentication, go to Security, and select API.
  2. From the Authorization Servers tab, open the default API (or whatever API you are assigning to your application).
  3. On the Scopes tab:
    1. Add a scope named groups.
    2. Uncheck Set as Default.
    3. Check Include in Public Metadata.
  4. On the Claims tab:
    1. Add a claim named groups.
    2. Set Include in token type to ID Token / Always
    3. Set Value type to Groups
    4. Set a filter of Matches regex to .*. Alternatively, set a filter of Starts with and set to the prefix for your group names that you want to use in Conductor. For example, set Starts with to cond_.
    5. Set Include in to Any scope.

OneLogin - Create Application

  1. In OneLogin, select Add App, and then choose OpenID Connect (OIDC).
  2. Set Authentication method to basic.
  3. Add users to the roles you want. For example, to make them a system admin, add them to cond_sysadmins.
    Note: In OneLogin, roles are mapped to OIDC groups (groups mean something else), so add users to roles, not groups.
  4. In your OneLogin application, on the Parameters tab, configure the roles-to-groups mapping. Edit the groups and modify the default on the Roles field to: User roles, --No transform—.
  5. Note the information you’ll need to configure the Conductor:
    1. OpenID Connect host: This is your OneLogin login URL, for example, https://my-company.onelogin.com.
    2. Issuer: On the SSO tab, select OpenID Provider Configuration Information for the Issuer.
    3. Client ID and Secret: These are both on the SSO tab.

Auth0 - Create Application

  1. In Auth0, under Applications, select Create Application, and then Regular Web Application.
  2. Skip the quick start.
  3. On your new application's Settings page:
    1. Change Application Properties > Token Endpoint Authentication Method to Basic.
    2. In Application URIs > Allowed Callback URLs, add the login redirect URI. See the Login Redirect URI near the top of this page.
    3. In Application URIs > Allowed Logout URLs, add the logout redirect URI. See the Logout Redirect URI near the top of this page.
      Note: Auth0 does not currently support OpenID Connect Logout.
    4. Note the following information in Auth0 that you’ll need to configure the Conductor:
      • Basic Information > Domain: On the Conductor, you enter this information as Open Connect host and Issuer (note that the https is required).
      • Basic Information > Client ID and Client Secret: On the Conductor, you enter this information as Client ID and Secret.
    5. When finished, select Save Changes at the bottom of the Settings page.
  4. Add the rule required by Auth0 to set OIDC groups. (In Auth0, roles map to groups on the Conductor.)
    1. Under Auth Pipeline > Rules, select Create Rule.
    2. Select Empty Rule.
    3. Set the name to Add groups to OIDC token.
    4. Add this rule:
      
      function (user, context, callback) { 
          const namespace = 'https://<your issuer>'; 
          const assignedRoles = (context.authorization || {}).roles; 
                                      
          let idTokenClaims = context.idToken || {}; 
          let accessTokenClaims = context.accessToken || {}; 
                                      
          idTokenClaims[`${namespace}/groups`] = assignedRoles;
          accessTokenClaims[`${namespace}/groups`] = assignedRoles;
                                      
          context.idToken = idTokenClaims; 
          context.accessToken = accessTokenClaims; 
                                      
          callback(null, user, context);
      }
    5. Change the namespace in the rule to be your Auth0 issuer. Example: https://dev-abc123.auth0.com
  5. Following Auth0 instructions, add roles to users that give them the proper role in the Conductor.

Azure Active Directory - Create Application

Note that the Azure AD documentation may be more up-to-date and the settings in your Azure AD account may vary.

  1. In Azure Active Directory (AD), select App registrations.

    Azure Active Directory menu

  2. Select New Registration, and fill in the form as follows:
    • Name – Enter a name for the Application (for example, "Airwall Conductor").
    • Supported account types – Select Accounts in any organizational directory (Any Azure AD directory – multitenant).
    • Redirect URI – Select Web, and then enter the URL of your Conductor followed by/user/auth/openid_connect/callback:

      Azure AD Register an application dialog box

  3. Click Register. Take a note of the Application (client) ID and the Directory (tenant) ID provided by Azure AD.

    Once you’ve registered the Application, Azure AD provides a set of IDs that you configure in the Conductor when you set up Azure AD as an OIDC provider. Here is how they map to the Edit Authentication Provider options in the Conductor:


    Azure AD IDs mapped to Conductor OIDC fields (details in the bulleted list following)

    • Application (client) ID – Enter in the Client ID box.
    • Directory (tenant) ID – Append this ID to https://sts.windows.net/and enter in the Issuer box .
  4. In Azure AD, create a Client Secret:
    1. Select Certificates & secrets.
    2. Select New client secret.

      Azure AD Certificates & secrets page

    3. Add a description, and select when the secret expires.

      Azure AD Add a client secret page

    4. Select Add.
  5. On the Client secrets page, copy the Value (not the ID). Enter the Value as the secret in the Conductor.

    Mapping the Azure AD Secret Value to the Secret box in Conductor

  6. From the newly registered application in Azure AD, select Authentication.
  7. Under Implicit grant, verify that ID tokens is checked.
  8. In the Azure AD application, set up the groups claim:
    1. From the menu on the left, select Token configuration.
    2. Select Add groups claim.
    3. Check all of the group types:

      Azure AD Edit groups claim page with all group types selected

    4. Under Customize token properties by type, expand and configure the properties as follows:
      • ID – Select sAMAccountName.
      • Access – Select sAMAccountName.
      • SAML – This is not used.
  9. In Azure AD, create the groups you want to use for the Conductor. Here are some suggested groups:
    • cond_network_admins
    • cond_readonly_admins
    • cond_remote_users
    • cond_system_admins

    Azure AD showing the groups above created for use in the Conductor

  10. Add users to Azure AD, and assign them to the appropriate groups for Conductor access:

    Azure AD showing adding users

You are now ready to configure Azure AD as an OIDC provider in the Conductor as described in 2. Configure OIDC on the Airwall Conductor. For the mappings from Azure AD to the Conductor, see steps 3 to 7 above.

Verify third-party authentication is working

To verify your configuration:

  1. Log out of Conductor.
  2. Open an incognito window and log in, choosing the provider name you chose in the Conductor.
  3. Log in as a user you’ve set up with third-party provider. You should be able to log in to the Conductor using your third-party provider credentials.

To verify a client can connect:

  • After the client logs in using the third-party provider, ping the client.