> **Building with AI coding agents?** If you're using an AI coding agent, install the official Scalekit plugin. It gives your agent full awareness of the Scalekit API — reducing hallucinations and enabling faster, more accurate code generation.
>
> - **Claude Code**: `/plugin marketplace add scalekit-inc/claude-code-authstack` then `/plugin install <auth-type>@scalekit-auth-stack`
> - **GitHub Copilot CLI**: `copilot plugin marketplace add scalekit-inc/github-copilot-authstack` then `copilot plugin install <auth-type>@scalekit-auth-stack`
> - **Codex**: run the bash installer, restart, then open Plugin Directory and enable `<auth-type>`
> - **Skills CLI** (Windsurf, Cline, 40+ agents): `npx skills add scalekit-inc/skills --list` then `--skill <skill-name>`
>
> `<auth-type>` / `<skill-name>`: `agent-auth`, `full-stack-auth`, `mcp-auth`, `modular-sso`, `modular-scim` — [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Okta SAML

This guide walks you through configuring Okta as your SAML identity provider for the application you are onboarding, enabling secure single sign-on for your users. You'll learn how to set up an enterprise application, configure SAML settings to the host application. By following these steps, your users will be able to seamlessly authenticate using their Okta credentials.

## Create Enterprise Application

1. Login to your _Okta Admin Console_. Go to _Applications→ Applications_.

   ![](@/assets/docs/guides/sso-integrations/okta-saml/0.png)

2. In the **Applications** tab, click on **Create App Integration.**

   ![](@/assets/docs/guides/sso-integrations/okta-saml/1.png)

3. Choose **SAML 2.0**, and click on **Next.**

   ![](@/assets/docs/guides/sso-integrations/okta-saml/2.png)

4. Give your app a name, choose your app visibility settings, and click on **Next.**

   ![](@/assets/docs/guides/sso-integrations/okta-saml/3.png)

## SAML Configuration

1. Copy the **SSO URL** from the **SSO Configuration Portal**. Paste this link in the space for **SSO URL** on the **Okta Admin Console**.

   ![](@/assets/docs/guides/sso-integrations/okta-saml/4.png)
   ![](@/assets/docs/guides/sso-integrations/okta-saml/5.png)

2. Copy the **Audience URI (SP Entity ID)** from the SSO Configuration Portal, and paste it in your **Okta Admin Console** in the space for **Audience URI.**

   ![](@/assets/docs/guides/sso-integrations/okta-saml/6.png)
   ![](@/assets/docs/guides/sso-integrations/okta-saml/7.png)

3. You can leave the Default Relay State as blank. Similarly, select your preferences for the Name ID format, Application Username, and Update application username on fields.

   ![](@/assets/docs/guides/sso-integrations/okta-saml/8.png)

## Attribute Mapping

1. Check the **Attribute Statements** section in the **SSO Configuration Portal**, and carefully map the same attributes on your Okta Admin Console. There are 2 ways that you may perform the mapping here. You may either use the Add expression buttons to add your attributes or through the legacy configurations. You will need to click on **Add expression** to add your required attributes.

   ![Attribute mapping on SSO Configuration Portal](@/assets/docs/guides/sso-integrations/okta-saml/20.png)

2. You will have to enter each attribute one by one as shown below. click on **Save** once you have added the name and value for the attribute,

   ![Attribute mapping on Okta Admin Console](@/assets/docs/guides/sso-integrations/okta-saml/21.png)

3. Ensure that you map all the required attributes as shown on the SSO Configuration Portal.

   ![Attribute mapping completed on Okta Admin Console](@/assets/docs/guides/sso-integrations/okta-saml/22.png)
   
## Assign User/Group

1. Go to the **Assignments** tab.

   ![Locate Assignments tab](@/assets/docs/guides/sso-integrations/okta-saml/11.png)

2. Click on **Assign** on the top navigation bar, select **Assign to People/Groups.**

   ![Select Assign to People or Groups](@/assets/docs/guides/sso-integrations/okta-saml/12.png)

3. Click on **Assign** next to the people you want to assign it to. Click on **Save and Go Back**, and click on **Done.**

   ![Assign specific individuals or groups to app](@/assets/docs/guides/sso-integrations/okta-saml/13.png)

## Finalize App

1. Preview your SAML Assertion generated, and click on **Next.**

   ![Preview SAML Assertion](@/assets/docs/guides/sso-integrations/okta-saml/14.png)

2. Fill the feedback form, and click on **Finish** once done.

   ![Feedback form after configuring SAML](@/assets/docs/guides/sso-integrations/okta-saml/15.png)

## Upload IdP Metadata URL

1. On the **Sign On** tab copy the **Metadata URL** from the **Metadata Details** section on **Okta Admin Console.**

   ![Copy Metadata URL from Okta Admin Console](@/assets/docs/guides/sso-integrations/okta-saml/16.png)

2. Under **Identify Provider Configuration,** select **Configure using Metadata URL,** and paste it under **App Federation Metadata URL** on the **SSO Configuration Portal.**

   ![Paste Metadata URL on SSO Configuration Portal](@/assets/docs/guides/sso-integrations/okta-saml/17.png)

## Test Connection

Click on **Test Connection.** If everything is done correctly, you will see a **Success** response as shown below.

![Test SSO configuration](@/assets/docs/guides/sso-integrations/okta-saml/18.png)
**Note:** If the connection fails, you'll see an error, the reason for the error, and a way to solve that error right on the screen.

## Enable Connection

Click on **Enable Connection.** This will let all your selected users login to the new application via your Okta SSO.

![Enable SSO on Okta Admin Console](@/assets/docs/guides/sso-integrations/okta-saml/19.png)

With this, we are done configuring your Okta application for an SSO login setup.

---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
