# SAML with Okta (EU)

Select SAML from the Authentication method drop down when setting up a new configuration for SSO

{% hint style="info" %}
If you are an Synap Enterprise client on US Infrastructure please see our [US specific docs](https://academy.synap.ac/doc/portal-settings/portal-settings/sso-authentication/saml-with-okta-us) . If you are unsure please get in touch with support&#x20;
{% endhint %}

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2FylEvpmE3KsiqNXLMpj8Y%2FScreenshot%202024-01-25%20at%2015.14.03.png?alt=media&#x26;token=46a8cd76-57d2-45a0-9183-94b37706b703" alt=""><figcaption><p>Creating a new SAML configuration</p></figcaption></figure>

You will need to go to the SP Metadata URL to get a crt file that Okta or other SSO providers need this is stored at [ https://api.synap.ac/external-auth/saml/certificate.crt](https://api.synap.ac/external-auth/saml/certificate.crt) and is a public certificate that is the same for everyone.

If you are using Okta and haven't already, create an account ([https://www.okta.com](https://www.okta.com/uk/)). From your SSO provider account and Applications, create a new app integration, select SAML 2.0

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2FfS7pIPQ5pV9VtEI0W2m6%2FScreenshot%202024-01-25%20at%2015.23.32.png?alt=media&#x26;token=b0b11867-4dba-463f-8ccf-45a08b9570b2" alt=""><figcaption><p>Okta application with SAML 2.0</p></figcaption></figure>

Continue to configure to the SAML, select show advanced options settings and plug in the following information:

* Single sign-on URL = `https://api.synap.ac/external-auth/saml/authenticate`
  * Use for Recipient URL and Destination URL
* Recipient URL = `https://api.synap.ac/external-auth/saml/authenticate`
* Destination URL = `https://api.synap.ac/external-auth/saml/authenticate`
* Audience URI (SP Entity ID) = `https://api.synap.ac/`
* Assertion Encryption = Encrypted
* Encryption Certificate = (attached crt file)
* Attribute statements: (name ⇒ value)
  * first\_name ⇒ user.firstName (unspecified)
  * last\_name ⇒ user.lastName (unspecified)
  * email ⇒ user.email (unspecified)

Once done click next, we recommend ‘I’m a software vendor’ to avoid some onboarding materials, however it's up to you, once done click finished.&#x20;

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2FYe601CjA5jKqSp7RUpfq%2FScreenshot%202024-01-25%20at%2016.10.37.png?alt=media&#x26;token=154b303e-fd54-46b1-ae85-003c5cade2d5" alt=""><figcaption><p>Okta active app</p></figcaption></figure>

You will now need to put some information back into Synap. Go back to Synap and fill in the following

From the Sign On tab

* Metadata URL ⇒ **IdP Metadata URL**\*

Expand for more details

* Sign on URL ⇒ **IdP SSO Login URL**\*

Save on Synap once you’re happy, and enable your new configuration

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2FnylqEmXj42uxV1hIRUez%2FScreenshot%202024-01-25%20at%2016.12.11.png?alt=media&#x26;token=ef73df86-1744-4756-87b6-334197d321db" alt=""><figcaption><p>Finalising on Synap </p></figcaption></figure>

To test you’ll need to make a user in Okta, go back to Okta >Directory>People> add person. Use a name, email for a test user, setting a password makes it easier if it is not a real user. Once done save (you may need to refresh for them to appear on the list).

{% hint style="info" %}
Note, you don't need to use a real email to test!
{% endhint %}

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2Fh93bzPqGo3PgYcUnEWmY%2FScreenshot%202024-01-25%20at%2016.13.43.png?alt=media&#x26;token=94d1a373-1939-4e4b-abca-5ed29e34eb4e" alt=""><figcaption><p>Creating a user in Okta</p></figcaption></figure>

Add this user to the right application on Okta (optional turn off 2fa)

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2Fwyxgvo0C34q70QgiRRq0%2FScreenshot%202024-01-25%20at%2016.26.27.png?alt=media&#x26;token=55401219-b5c4-4d74-99a4-5c6fcb42b2f8" alt=""><figcaption></figcaption></figure>

Now the user login is ready to test the login on Synap, go back to your portal either logged out as an admin or on an incognito window.

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2F6PRykqhKPr1MDzC1d4sQ%2FScreenshot%202024-01-25%20at%2016.15.23.png?alt=media&#x26;token=01ce5d9c-a19e-43c7-a6bf-a19d5e86234b" alt=""><figcaption><p>Login with SSO</p></figcaption></figure>

From the login page you'll see the option to 'Login with SSO' this text can be modified in the SSO settings and the Login standard way button can be removed by disabling local login on Settings>Authentication, this will mean users have to login via SSO. Once clicked the user will be temporarily redirected to the Okta login page, once they've logged in they will also be logged into Synap. The password used on Okta is may be different to the password they have on Synap

<figure><img src="https://3316915154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgvUeCmTPeNouRxGPC%2Fuploads%2FzPjv0eYrYZIQMDy99U6q%2FScreenshot%202024-01-25%20at%2016.24.56.png?alt=media&#x26;token=bc2900e8-5fe1-4d4d-8abf-07430f431a81" alt=""><figcaption><p>Okta SSO </p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.synap.ac/doc/portal-settings/portal-settings/sso-authentication/saml-with-okta-eu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
