# Getting error while integrating SAML (Okta)

**URL:** <https://community.auth0.com/t/getting-error-while-integrating-saml-okta/77147>\
**Category:** Get Help\
**Created:** [January 27, 2022, 3:28pm UTC](https://community.auth0.com/t/getting-error-while-integrating-saml-okta/77147 "2022-01-27T15:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/raja/32/34727_2.png) [@raja](https://community.auth0.com/u/raja)\
**Post date:** [January 27, 2022, 3:28pm UTC](https://community.auth0.com/t/getting-error-while-integrating-saml-okta/77147/1 "2022-01-27T15:28:15Z")

</div>

I am trying to integrate OKTA as iDp with auth0. what’ll be the SSO URL for Okta in case auth0 is SP.  
I tried `https://YOUR_DOMAIN/login/callback?connection=YOUR_CONNECTION_NAME`. But in my case it’s a react bundle running on localhost and Okta does a HTTP POST on `https://YOUR_DOMAIN/login/callback?connection=YOUR_CONNECTION_NAME` which can’t be processed, what’s the right way to add SSO URL.

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [January 31, 2022, 10:12pm UTC](https://community.auth0.com/t/getting-error-while-integrating-saml-okta/77147/3 "2022-01-31T22:12:14Z")

</div>

Hi @raja , welcome to the community!

If Auth0 is the Service provider, the SSO URL should be the login endpoint for the IdP (Okta in your case), and the Assertion Consumer Service URL on the Okta side would be pointed at your Auth0 tenant’s domain - not localhost. E.g. `https://<yourTenantName>.<region>.auth0.com/login/callback?connection=<YOUR_CONNECTION_NAME>`

You can check the value for YOUR\_DOMAIN in any of your Auth0 app’s settings page.

Once that is configured, Auth0 would then be able to send the request to Okta via the SSO URL, which in turn could send the SAML response to the ACS URL which should be your Auth0 tenant, for processing after successful authentication. Auth0 would then finally redirect to your app using the allowed callback URLs configured for your app. Please see the guide here for setting Auth0 up as an SP:

> **[Configure Auth0 as SAML Service Provider](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider)**
>
> Describes how to configure Auth0 to serve as a service provider in a SAML federation.

> **[Configure Okta as SAML Identity Provider](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider/configure-okta-as-saml-identity-provider)**
>
> Describes how to configure Okta for use as an identity provider for Auth0.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 15, 2022, 10:12pm UTC](https://community.auth0.com/t/getting-error-while-integrating-saml-okta/77147/4 "2022-02-15T22:12:24Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
