> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/settings/sso/okta.md).

# Okta

Set up Okta as an identity provider in Dastra with the OpenID Connect protocol.

This page explains how to set up Okta SSO login in Dastra with the **OpenID Connect** protocol. You can also do it with SAML: see [SAML 2](https://doc.dastra.eu/en/features/settings/sso/saml.md).

1. Sign in to the Okta admin console.
2. Open the **Applications** > **Applications** menu, then click **Create App Integration**.
3. Select **OIDC - OpenID Connect**.
4. Select the application type **Web application**.
5. Configure the application and tick **Implicit (hybrid)** under **Grant type**. For the application logo, you can [use this one](https://www.dastra.eu/img/press/logodastra.png).
6. In Dastra, get the redirect URL: open the [SSO management page](https://app.dastra.eu/general-settings/sso), click **Add a SSO login** and choose **OpenID**. In the **Configuration** section, at the bottom of the form, copy the redirect URL.

   <figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-be94e7ffcaa4762be6f76c9e64a0e3d7790acf62%2Fsettings-okta-1.png?alt=media" alt="The bottom of the Configuration section of the OpenID form, with the redirect URL to copy"><figcaption><p>The redirect URL shown by Dastra</p></figcaption></figure>
7. Go back to Okta and paste the redirect URL into **Sign-in redirect URIs**. Select the Okta users you want to give access to Dastra (by default, you can tick **Allow everyone**), then click **Save**.
8. Okta displays the settings page of the new application: the client ID (Client ID), the secret key (Client secret) and the Okta domain, which serves as the authority.
9. Go back to Dastra and fill in the form fields:

   * **ClientId**: copy the Client ID from Okta.
   * **Authority/Domain**: enter the Okta domain with the protocol (`https://<your domain>.okta.com`).
   * **Issuer**: leave the field empty.
   * **Secret key**: copy the client secret from Okta.
   * **Scope**: `openid profile email`.
   * **Response type**: `id_token`.

   <figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-88a5b8c09b1701040679dab7c613a9944c1d1508%2Fsettings-okta-2.png?alt=media" alt="The Dastra OpenID form filled in with the Okta values, with the secret values masked"><figcaption><p>The Dastra OpenID form</p></figcaption></figure>
10. Click **Save changes**, then click **Test** on the connection card. If Okta redirects you to Dastra, the setup is complete.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/en/features/settings/sso/okta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
