# Use Okta for SSO for Salesforce users

### Why Delegated Authentication is necessary

The SlapFive Salesforce App is a Salesforce embedded application, so it must authenticate with Salesforce to validate that a user has application level permissions (Authorization) and is a valid legal user of Salesforce (Authentication).&#x20;

Using SAML terminology, the SlapFive Salesforce App is a subservient Service Provider (SP) which gets its authentication and authorization from its only known upstream Identity Provider (IDP) which is Salesforce.&#x20;

If your company uses Okta as the IDP to provide SSO login for Salesforce users, the SlapFive Salesforce App must also use Okta as the IDP, which means your Salesforce org must be configured to delegate embedded apps authentication to Okta.

### Delegated Authentication data flow

This data flow diagram shows how the delegated authentication works with Okta, Salesforce, and SlapFive.

<figure><img src="/files/iWZnkOjcqxNZoNCIrqZD" alt=""><figcaption><p>Delegated Authentication data flow diagram</p></figcaption></figure>

### Configuring Delegated Authentication

See [this article](https://saml-doc.okta.com/SAML_Docs/How-to-Configure-SAML-2.0-in-Salesforce.html#del-auth) from Okta's documentation site for instructions on how to configure Delegated Authentication.


---

# 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://docs.slapfive.com/customizations/use-okta-for-sso-for-salesforce-users.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.
