Okta Authentication

Users configured in the Okta app can be used to access the DW application.

In order to Import users from Okta, these two Okta applications need to be created:

  • 2Ring DW - Auth

  • 2Ring DW - User Import

2Ring DW - Auth

Create Okta application

  1. Login to your Okta account -> Applications -> Applications

    Figure 1: Create Okta application

    ../_images/okta-1.png
  2. Click on “Create App Integration”

    Figure 2: Create Okta application 2

    ../_images/okta-2.png
  3. Select OIDC - OpenID Connect -> Web Application and click “Next”

    Figure 3: Create Okta application 3

    ../_images/oktaa-2.png
  4. Fill the App integration name.

    Figure 4: Create Okta application 4

    ../_images/oktaa-2a.png
  5. Scroll down to “Controlled access” section and define, who should have access to the app integration. Click “Save”

    Figure 5: Create Okta application 5

    ../_images/oktaa-3.png

Configure Okta application

  1. Go to Okta application page and click “Edit” in the “Client Credentials” section

    Figure 6: Configure Okta application

    ../_images/oktaa-4.png

    Copy the generated Client ID and Client Secret, you will need to provide them to 2Ring support later in the configuration process.

  2. Check the “Require PKCE as additional verification” option and click “Save”

    Figure 7: Configure Okta application 2

    ../_images/oktaa-5.png
  3. Click “Edit” in the “General Settings” section

    Figure 8: Configure Okta application 3

    ../_images/oktaa-6.png
  4. Scroll down to the “Login” section and remove default “Sign-in and Sign-out redirect URI”

    Figure 9: Configure Okta application 4

    ../_images/oktaa-7.png
  5. Contact 2Ring support to obtain the “Sign-in redirect URI” and add it to the application:

    Figure 10: Configure Okta application 5

    ../_images/oktaa-8.png
  6. Contact 2Ring support to obtain the “Sign-out redirect URI” and add it to the application:

    Figure 11: Configure Okta application 6

    ../_images/oktaa-9.png
  7. Click “Save”

    Figure 12: Configure Okta application 7

    ../_images/oktaa-10.png

2Ring DW - User Import

Create Okta application

  1. Login to your Okta account -> Applications -> Applications

    Figure 13: Create Okta application

    ../_images/okta-1.png
  2. Click on “Create App Integration”

    Figure 14: Create Okta application 2

    ../_images/okta-2.png
  3. Select the “API Services” and click “Next”

    Figure 15: Create Okta application 3

    ../_images/okta-3.png
  4. Fill the App integration name and click “Save”

    Figure 16: Create Okta application 4

    ../_images/okta-4.png

Configure Okta application

  1. In the app details, in the Client Credentials section, click “Edit”

    Figure 17: Configure Okta application

    ../_images/okta-5.png

    Copy the Client ID, you will need to provide it to 2Ring support later in the configuration process.

  2. Select the “Public key / Private key” Client authorization

    Figure 18: Configure Okta application 2

    ../_images/okta-6.png
  3. Click on “Add Key”

    Figure 19: Configure Okta application 3

    ../_images/okta-7.png
  4. In the following dialog, click on “Generate new key”

    Figure 20: Configure Okta application 4

    ../_images/okta-8.png
  5. Switch the format of the private key to “PEM”, copy the value and click “Done”

    Figure 21: Configure Okta application 5

    ../_images/okta-9.png

    Copy the PEM private key, you will need to provide it to 2Ring support later in the configuration process.

  6. Click “Save”

    Figure 22: Configure Okta application 6

    ../_images/okta-99.png
  7. Confirm the Client authorization type by clicking “Save” again.

    Figure 23: Configure Okta application 7

    ../_images/okta-999.png

    Only one key can be configured for the application. In case you need to rotate the key, you need to generate a new key and then retire the old one.

  8. In the app details, in the General Settings section, click “Edit”

    Figure 24: Configure Okta application 8

    ../_images/okta-44.png
  9. Uncheck “Require Demonstrating Proof of Possession (DPop) header in token requests” and click Save

    Figure 25: Configure Okta application 9

    ../_images/okta-444.png
  10. In the application detail, switch to the “Okta API Scopes” tab

Figure 26: Configure Okta application 10

../_images/okta-10.png
  1. Scroll down and grant the “okta.users.read” permission.

Figure 27: Configure Okta application 11

../_images/okta-11.png
  1. Confirm that you want to grant this permission to created application.

Figure 28: Configure Okta application 12

../_images/okta-12.png
  1. Navigate to “Security” -> “Administrators” and switch to the “Resources” tab.

Figure 29: Configure Okta application 13

../_images/okta-13.png
  1. Click on “Create new resource set” button.

Figure 30: Configure Okta application 14

../_images/okta-14.png
  1. Click on “Add resources” button.

Figure 31: Configure Okta application 15

../_images/okta-15.png
  1. Select the “Users” resource type.

Figure 32: Configure Okta application 16

../_images/okta-16.png
  1. Choose whether All users or specific group of users should be able to be imported into the DW application and click “Save selection”.

    For more information see Creating groups of users section.

Figure 33: Configure Okta application 17

../_images/okta-17.png
  1. Fill the “Name” and “Description” fields and click “Create”.

Figure 34: Configure Okta application 18

../_images/okta-18.png
  1. Switch to the Roles tab and click “Create new role” button.

Figure 35: Configure Okta application 19

../_images/okta-19.png
  1. Fill the “Name” and “Description” fields, search for the “View users and their details” permission, check the checkbox and click “Save role” button.

    In case of using groups of users, the “View groups and their details” permission is also needed to be assigned to the role.

Figure 36: Configure Okta application 20

../_images/okta-20.png
  1. Navigate back to the “Applications” -> “Applications” and click on the “2Ring DW - User Import” application.

Figure 37: Configure Okta application 21

../_images/okta-21.png
  1. Switch to the “Admin Roles” tab and click the “Edit assignments” button.

Figure 38: Configure Okta application 22

../_images/okta-22.png
  1. Create new role assignment by selecting the newly created “Role” and “Resource set” and click “Save Changes”.

Figure 39: Configure Okta application 23

../_images/okta-23.png

Creating groups of users

Groups of users that can be later selected as users able to be imported in the DW application can be configured in the Okta application. To create a group of users, follow these steps:

Make sure that the “View groups and their details” permission was assigned to the role of the “2Ring DW - User Import” application as a part of step 20 in Configuration of the application.

  1. Navigate to “Directory” -> “Groups” and click the “Add Group” button.

    Figure 40: Create group of users

    ../_images/okta-24.png
  2. Fill the name of the group and click “Save”.

    Figure 41: Create group of users 2

    ../_images/okta-25.png
  3. Click on the newly created group of users.

    If you don’t see the created group in the list, refresh the page.

    Figure 42: Create group of users 3

    ../_images/okta-26.png
  4. Click on the “Assign people” button.

    Figure 43: Create group of users 4

    ../_images/okta-27.png
  5. Search for the users that should be assigned to the group and click the button. Once you have all users assigned, click “Done” button. The group of users is created.

    Figure 44: Create group of users 5

    ../_images/okta-28.png
  6. Navigate back to “Directory” -> “Groups” and switch to the “Applications” tab. Click the “Assign applications” button.

    Figure 45: Create group of users 6

    ../_images/okta-29.png
  7. Assign “2Ring DW - User Import” application to the group of users and click “Done”.

    Figure 46: Create group of users 7

    ../_images/okta-30.png

Afterwards contact 2Ring support and provide the following information:

  • Domain of your Okta organization

  • 2Ring DW - Auth application: Client ID and Client Secret

  • 2Ring DW - User Import application: Client ID and PEM Private Key