For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication with Okta

The following sections describe how to set up your Dropzone instance with Okta as the OIDC provider.

There are multiple ways you can configure Okta successfully with Dropzone AI; we show the simplest version here, but you are welcome to use whatever works best. Perhaps you wish to set the user.dropzone_role via the Application profile, or via Okta Expression Language with custom logic.

As long as the values come down where we expect them, in the correct form, the "how" is up to you.

Enabling OIDC with Okta involves the following steps:

  • Creating the OIDC application in Okta

  • Updating the Application Profile to support Dropzone attributes

  • Assigning Users to the Dropzone Application

  • Configuring OIDC values for your Dropzone Environment

Create the OIDC application in Okta

  • Go to Applications > Applications

  • Click Create App Integration

    • "Create a new app integration" screen opens

      • In "Sign-in Method" section, select "OIDC - OpenID Connect"

      • In "Web Application" section, select "Web Application"

      • Click Next

    • "General Settings" screen opens

      • Set "App integration name" field to a useful value, such as "Dropzone AI"

    • "Proof of possession" section: leave as default

    • "Grant type " section: leave as default

    • "Sign-in redirect URIs" section

      • You must add two URIs to this list - the bare https URL of your Dropzone environment, and a second one including /oidc/callback at the end

      • If your user-facing URL is dropzone.example.com, then you would add the following two URLs:

        • https://dropzone.example.net

        • https://dropzone.example.net/oidc/callback/

Application Sign-in Redirect URIs

At this point you should have a Dropzone application.

Update the Application Profile

Next we set up the application profile to support the attributes such as role.

This is but one way to configure your Okta to support the necessary attributes - as long as the values come down as we expect them it is up to you which Okta method you use to set these.

  • Go to Directory > Profile Editor

  • In "Filters" select "Apps"

  • Click on the Application you just made

User Application Profile
  • Add three new attributes

    • Click "Add Attribute"

    • Set the "Data Type", "Display Name", "Variable Name", and "Description" fields based on the following table

    • Click "Save"

    • Repeat for the remainder of the attributes

Data Type
Display Name
Variable Name
Description

string

First Name

first_name

First Name

string

Last Name

last_name

Last Name

string

Full Name

full_name

Full Name

  • Add the Role attribute

    • Data Type: string array

    • Display Name: Dropzone Roles

    • Variable Name: roles

    • Description: Dropzone Roles

    • Click the "Define enumerated list of values" checkbox

    • Add three entries, one for each role type

      • Admin => admin

      • Member => member

      • Read Only => restricted-read-only

    • Click "Save"

Custom Roles Attribute
  • When complete, these four attributes should show on the Application Profile

Custom Attributes List

Assign Users to the Dropzone Application

Configure which users are allowed to log into Dropzone.

  • Go to the newly created application in Okta

  • Click on the "Assignments" tab at the top

  • Click "Assign" > "Assign to People"

    • This will open a view of the user's profile, including our custom attributes

    • Set the First Name / Last Name / Full Name fields

    • Set the Role(s) you want for the user

    • Click "Save"

  • Repeat until you've added all the people/groups who should have access

  • Click "Done"

Set user's attributes during assignment

Configure OIDC values for your Dropzone Environment

You need to congfigure OIDC values so your Dropzone Environment will talk to your IDP.

  • Log into the machine running your Dropzone environment, e.g. via ssh

  • Change to the /opt/dropzone/deploy directory

  • Edit the config.yml file

  • Find the oidc section, which will look similar to the following

  • Edit this to include the necessary values; replace my-okta-idp.example.net with your actual IDP URL:

    • style: manual

    • logout-redirect-url: "https://my-okta-idp.example.net/login/signout"

    • op-auth-endpoint: "https://my-okta-idp.example.net/oauth2/v1/authorize"

    • op-jwks-endpoint: "https://my-okta-idp.example.net/oauth2/v1/keys"

    • op-token-endpoint: "https://my-okta-idp.example.net/oauth2/v1/token"

    • op-user-endpoint: "https://my-okta-idp.example.net/oauth2/v1/userinfo"

    • rp-token-endpoint: "https://my-okta-idp.example.net/oauth2/v1/token"

    • client-id - you'll find this value as follows

      • Go to Applications > Applications

      • Select your newly created application

      • In the "General" tab, copy the value of the "Client ID" field

      • Use this for the client-id value in config.yml

    • client-secret - you'll find this value as follows

      • Go to Applications > Applications

      • Select your newly created application

      • In the "General" tab, find the CLIENT SECRETS section

      • There should be a client secret entry with today's date - copy this value

      • Use this for the client-secret value in config.yml

Once complete, restart the Dropzone platform

Was this helpful?