Files
2022-08-19 15:48:28 -07:00

3.0 KiB

title, weight, aliases
title weight aliases
Configuring Okta (SAML) 1210
/rancher/v2.x/en/admin-settings/authentication/okta/

If your organization uses Okta Identity Provider (IdP) for user authentication, you can configure Rancher to allow your users to log in using their IdP credentials.

Note: Okta integration only supports Service Provider initiated logins.

Prerequisites

In Okta, create a SAML Application with the settings below. See the Okta documentation for help.

Setting Value
Single Sign on URL https://yourRancherHostURL/v1-saml/okta/saml/acs
Audience URI (SP Entity ID) https://yourRancherHostURL/v1-saml/okta/saml/metadata

Configuring Okta in Rancher

  1. From the Global view, select Security > Authentication from the main menu.

  2. Select Okta.

  3. Complete the Configure Okta Account form. The examples below describe how you can map Okta attributes from attribute statements to fields within Rancher.

    Field Description
    Display Name Field The attribute name from an attribute statement that contains the display name of users.
    User Name Field The attribute name from an attribute statement that contains the user name/given name.
    UID Field The attribute name from an attribute statement that is unique to every user.
    Groups Field The attribute name in a group attribute statement that exposes your groups.
    Rancher API Host The URL for your Rancher Server.
    Private Key / Certificate A key/certificate pair used for Assertion Encryption.
    Metadata XML The Identity Provider metadata file that you find in the application Sign On section.

    Tip: You can generate a key/certificate pair using an openssl command. For example:

       openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout myservice.key -out myservice.crt
    
  4. After you complete the Configure Okta Account form, click Authenticate with Okta, which is at the bottom of the page.

    Rancher redirects you to the IdP login page. Enter credentials that authenticate with Okta IdP to validate your Rancher Okta configuration.

    Note: If nothing seems to happen, it's likely because your browser blocked the pop-up. Make sure you disable the pop-up blocker for your rancher domain and whitelist it in any other extensions you might utilize.

Result: Rancher is configured to work with Okta. Your users can now sign into Rancher using their Okta logins.

{{< saml_caveats >}}