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

# Enable SAML SSO with Okta

> Admin: configure SAML SSO for MacStadium Portal via Okta. Save the MacStadium certificate, configure the Okta app, and log in at portal.macstadium.com/sso.

## About

<Note>SAML SSO is a paid offering. Contact your account team through the [Customer Portal](https://portal.macstadium.com) for more information.</Note>

<Warning>MacStadium does not support IdP-initiated logins. After SSO is configured, all users must log in at [portal.macstadium.com/sso](https://portal.macstadium.com/sso) using the ID provided by the MacStadium team.</Warning>

<Tip>You can also log in directly at [portal.macstadium.com](https://portal.macstadium.com/login).</Tip>

## Overview

SAML SSO with Okta, allows customers to:

* Enable users to be automatically signed in to MacStadium using their Okta accounts.
* Manage users in one central location – Okta.

## Getting Started

1. Save the public signature key below (for example, save to `macstadium-us-east-1_pusi8jHs1.pem`)

`-----BEGIN CERTIFICATE----- MIICvDCCAaSgAwIBAgIIdQAHcexaNC4wDQYJKoZIhvcNAQELBQAwHjEcMBoGA1UE AwwTdXMtZWFzdC0xX3B1c2k4akhzMTAeFw0yNDAxMTAxNDEzMThaFw0zNDAxMTAw MDI1MThaMB4xHDAaBgNVBAMME3VzLWVhc3QtMV9wdXNpOGpIczEwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDiLAh9YbRaJFwq6wODIsJixW9sCPVbO6MR wtSXEqDp1oRuJ//c7DVsytJd3koj1WRtF9+Hg1lvhx9Of+D0l5hjltB4mbeaQpOx cwgdxCepba2OuzxpU4APOCyU++NBfqe3Be+GIkWnbygsYFo5Dq26dFTSzYq/UNam YBTRgPh28k3yv82A2cH96wqwWGuLg52TUc56AGSCAwTCqN5VlwNaMzAuYqxHW2zo tmeLtC9T8q0vS+/UWq/EckR7jV/R4ziyEYB/PWgkZNUnOp0TCYtiuoYdHuqzoazW jhQjil9W0TsUq6k6Vo2ISz+r3XxlXXQMk6blmfJDU7JcMEkPZybhAgMBAAEwDQYJ KoZIhvcNAQELBQADggEBAJ8QzPsFgF/prkw2/qsgfAs0nKJY+zAaIqYSGZlYY4pq pObs0q2O8R3ecsS8e1cpahn4GdstPad69CqgyqPVf7EZm5ZMfUY9s5P7ufDJ3neh /YTp6KX1yHG8PJwJuCPSbB6OxcQirrxOKwsT2tPUMOziYHPQuickpJ7WlxEso3Xj QlcU+F4L8tjhxxF3/T7+fOlzZmivLcBPVx7z+21VoARhJvetoqCqzRccrOitHWye Bma/C6JOtvFq3JPWH0rgmAV6IGhvCSro4ANaToEmK7JYXiOD13DlA44P0l6gV7L8 p5EbQgF1F9eBQpfvL2E3Ml/+ZrXf5zBr5EjSLKvj/NE= -----END CERTIFICATE-----`

2. Open Okta admin.

3. Navigate to **Applications → Applications**.

4. Create a new **App integration** by clicking **Create App Integration**.

5. Select **SAML 2.0**.

<img src="https://mintcdn.com/macstadiuminc/bll0b6tt9scf_iyB/images/attachments/28263436403739.png?fit=max&auto=format&n=bll0b6tt9scf_iyB&q=85&s=f462a5749b13b72dfbebd52801ffcfad" alt="Okta Create a new app integration dialog with SAML 2.0 option selected" width="3200" height="1762" data-path="images/attachments/28263436403739.png" />

6. Click **Next**.

7. Enter app name (for example, **MacStadium-SAML**).
   <img src="https://mintcdn.com/macstadiuminc/bll0b6tt9scf_iyB/images/attachments/28263420248603.png?fit=max&auto=format&n=bll0b6tt9scf_iyB&q=85&s=303db107350b29bb59279115dc973e4b" alt="Okta General Settings tab with app name field" width="3200" height="1762" data-path="images/attachments/28263420248603.png" />

8. Configure the SAML application.

9. Sign-on URL: `https://idp.macstadium.com/saml2/idpresponse`

10. Use this for Recipient URL and Destination URL: ✔︎ (make sure it’s checked)

11. Audience URI (SP Identity ID): `urn:amazon:cognito:sp:us-east-1_pusi8jHs1`

12. Click **Show Advanced Settings**.

13. Upload the public certificate `(macstadium-us-east-1_pusi8jHs1.pem)` from Step 1.

14. Single Logout.

15. Allow application to initiate Single Logout - ✔︎ (make sure it is checked)

16. Single Logout URL: `https://idp.macstadium.com/saml2/logout`

17. SP Issuer: `urn:amazon:cognito:sp:us-east-1_pusi8jHs1`

18. Attribute statements
    <img src="https://mintcdn.com/macstadiuminc/bll0b6tt9scf_iyB/images/attachments/28263420252059.png?fit=max&auto=format&n=bll0b6tt9scf_iyB&q=85&s=3689f715987e6a8f62f574fdbde66a98" alt="Okta SAML Settings with Attribute Statements section showing email mapping" width="2341" height="4096" data-path="images/attachments/28263420252059.png" />

19. Click **Finish** to complete the setup.

20. Provide the MacStadium support team the Metadata URL
    <img src="https://mintcdn.com/macstadiuminc/bll0b6tt9scf_iyB/images/attachments/28263420254491.png?fit=max&auto=format&n=bll0b6tt9scf_iyB&q=85&s=0b2ec4fc6bf5d5a6c77c93f0f65d4767" alt="Okta app Sign On tab showing Metadata URL field to copy" width="1472" height="828" data-path="images/attachments/28263420254491.png" />
