> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Demo Set Up Okta Account SAML

> Step-by-step guide to configure Okta SAML single sign-on for a GitHub organization, covering setup, user assignment, testing, and enforcing SSO.

This guide walks through configuring SAML single sign-on (SSO) for a GitHub organization using Okta as the Identity Provider (IdP). It covers the GitHub-side SAML settings and the Okta application setup and user assignment. Follow the steps in order to avoid locking out organization members.

Prerequisites

* Admin access to the GitHub organization (or Enterprise if applying at enterprise scope).
* Okta admin account (a 30-day trial is sufficient for testing).
* Okta Verify or another second-factor configured for the Okta admin user (MFA is commonly required).

1. Decide the scope: enterprise-wide or per-organization

* GitHub Enterprise customers can enforce SAML across an entire enterprise from Enterprise → Settings → Authentication security. This enforces SSO for all organizations in the enterprise.
* Or configure SAML per organization at Organization → Settings → Authentication security → SAML single sign-on. This guide demonstrates a per-organization setup.

![A screenshot of a GitHub Enterprise security settings page in dark mode showing sections for SAML single sign-on, SSH certificate authorities, and an IP allow list. The left sidebar lists admin options and the SAML section includes a "Require SAML authentication" checkbox and a "Save SAML settings" button.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/github-enterprise-security-saml-ssh-ip.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=98cb672a8cb0fb089f4cedbf00c946e3)

2. Prepare Okta and confirm the admin user

* Sign in to the Okta Admin Console and verify you have administrative privileges.
* Ensure the admin user has MFA (Okta Verify or equivalent) configured so that Okta sign-ins will succeed during testing.

![A screenshot of the Okta Admin Console dashboard in a browser, showing the Overview panel (Users, Groups, SSO Apps), Status (Okta service operational), and a Tasks area that says "All done! No new tasks." The left sidebar shows navigation items like Dashboard, Tasks, and Integration Agents.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/okta-admin-console-overview-tasks-status.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=47434ddbeca5cea2433aa3d295c20557)

3. Create the GitHub Enterprise Cloud Organization app in Okta

* In Okta: Applications → Browse App Catalog (or Applications → Add Application).
* Search for “GitHub” and pick the integration named "GitHub Enterprise Cloud - Organization".
* Click Add Integration and give it a clear label (e.g., `GHEC Org` or `GHEC - game-devstudio`). When prompted, enter the GitHub organization name (example: `game-devstudio`) and finish the setup.

![A screenshot of the Okta Admin Console showing the Applications section, with details for "GitHub Enterprise Cloud - Organization" and a blue "Add Integration" button. The left sidebar shows navigation items like Directory, Customizations, Applications, Security and Workflow.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/okta-github-enterprise-applications-add-integration.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=b9fa361c663b809364f87ecde01f6278)

4. Copy SAML settings from Okta and paste into GitHub

* In the Okta app, open the Sign On tab or click View SAML Setup Instructions. Okta provides:
  * Assertion Consumer Service / Sign-on URL (the GitHub SSO endpoint)
  * Issuer (Entity ID)
  * X.509 signing certificate
* In GitHub: Organization → Settings → Authentication security → SAML single sign-on — paste the Sign-on URL, Issuer, and the public certificate into the matching fields.
* Use GitHub’s Test configuration button to validate the integration. If the test fails with a message that the user is not assigned, assign the admin user in Okta (next step).

SAML fields mapping (Quick reference)

| GitHub field | Okta value to copy |
| -: | - |
| Sign-on URL | Okta Assertion Consumer Service / Sign-on URL |
| Issuer / Entity ID | Okta Issuer (Entity ID) |
| Public certificate | Okta X.509 signing certificate |

5. Assign users to the Okta application

* In the Okta application, go to Assignments (or People) and assign the GitHub admin user(s) to the app. Assigned users are allowed to authenticate to GitHub via Okta.

![A screenshot of the Okta Admin Console showing a modal dialog titled "Assign GEC-Org to People." The dialog contains a search box and a list of user accounts with "Assign" actions and a "Done" button.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/okta-admin-assign-gec-org-people.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=9180b120fa676dffe2b15cb32bb01b25)

Example assigned username:

```text theme={null}
alice.gh900+ADMIN@gmail.com
```

* After assigning users in Okta, re-run the GitHub Test configuration. If it succeeds, GitHub will confirm SAML authentication. Save the SAML settings in GitHub.

6. Verify the SSO sign-in flow as an admin

* Fully sign out of GitHub, then sign in using the organization SAML sign-in option (Sign in → choose SAML/organization sign-in).
* During Okta authentication you may be prompted for MFA (Okta Verify).
* Once authenticated, GitHub will show the account as authenticated for the organization.

![A dark-themed GitHub organization overview page for "game-devstudio" showing a banner that single sign-on has been enabled with a green "Authenticate your account" button. The page also shows the org avatar, name, and suggested setup tasks.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/game-devstudio-github-sso-authenticate.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=176192a8ed0e14e27153286f562474ea)

7. Enforce SAML for the organization (Require SSO)

* When you’re ready to enforce SAML across the organization, go to Organization → Settings → Authentication security → SAML single sign-on and check “Require SAML authentication.”
* Important: Before enforcing, ensure every required member has authenticated at least once via SSO or is provisioned via SCIM. Users who have never authenticated will be removed when you enforce SAML.

Enforcing SAML will remove organization members who haven’t authenticated via your IdP. Confirm you have an automated provisioning path (SCIM) or have notified and prepared all users before turning on enforcement.

![A GitHub organization Security settings page with a confirmation dialog warning that enforcing SAML SSO will remove two members and showing the affected accounts. The modal includes a red "Remove members and require SAML single sign-on" button, with team synchronization and SSH certificate authorities sections visible in the background.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/github-org-security-saml-remove-members.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=a3b4c44abd1eed39619d8f79fc89582a)

* Confirm enforcement only after you understand the implications. GitHub offers an option to download the list of removed members for your records or to re-invite them later.

8. Impact on users who haven’t authenticated via SSO

* Any user who hasn’t yet authenticated with your IdP will be removed when SAML is enforced. If they try to access the organization, GitHub directs them to the SSO sign-in page; without an assigned Okta account or prior authentication they cannot access the org.
* Removed users receive email notifications. To restore access:
  * Add them to the Okta application and ensure they authenticate via SSO, or
  * Provision them via SCIM, or
  * Re-invite them manually through GitHub admin tools.

![A screenshot of the GitHub organization page for "game-devstudio" showing a listed repository ("gh-actions"). A brown notification banner at the top says the user was removed and must use Single Sign-on to be a member.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Identity-and-Access-Management/Demo-Set-Up-Okta-Account-SAML/github-game-devstudio-gh-actions-sso.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=a466536a606e7947e77fcac8d0f92320)

Callouts and reminders

Before enforcing SAML for an organization, ensure all required users are set up in your IdP or that you have an automated provisioning path (SCIM) in place to avoid unexpected loss of access.

Post-enforcement: sample SAML audit tokens (for reference)

```text theme={null}
• f3032-86a87
• f13a9-89163
• 78000-a865c
• 0659d-fcc69
• c2e05-5a97f
• 34056-21ecf
• f3b29-43120
• d5f09-bf877
• fb320-8c3df
• 0f566-e3cc1
• f6077-36526
• 72542-948c3
• 0e264-d2046
• 964f3-15757
• fa1ed-048b6
• 93b83-2563c
```

Next steps

* Configure SCIM provisioning to automatically add users and map groups/teams.
* Automate team assignments in Okta so newly provisioned users receive correct GitHub organization access.
* Document the SSO sign-in steps for your organization members and provide an FAQ for common sign-in issues.

References

* GitHub Docs: SAML single sign-on for organizations — [https://docs.github.com/en/organizations/managing-access-to-your-organizations-resources/configuring-saml-single-sign-on](https://docs.github.com/en/organizations/managing-access-to-your-organizations-resources/configuring-saml-single-sign-on)
* Okta Docs: Configure GitHub SAML in Okta — [https://help.okta.com/](https://help.okta.com/) (search for “GitHub Enterprise Cloud - Organization”)

> [card] [Watch Video](https://learn.kodekloud.com/user/courses/github-administration-certification/module/dcb84798-d0b6-4722-a8f6-fa86e279f82a/lesson/eaabeb69-66f9-4e48-ada3-9e31f75eccaf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.