# Cross site user authentication

**URL:** <https://devforum.okta.com/t/cross-site-user-authentication/35288>\
**Category:** Questions\
**Created:** [June 2, 2026, 8:53am UTC](https://devforum.okta.com/t/cross-site-user-authentication/35288 "2026-06-02T08:53:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddhesh](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Siddhesh](https://devforum.okta.com/u/Siddhesh)\
**Post date:** [June 2, 2026, 8:53am UTC](https://devforum.okta.com/t/cross-site-user-authentication/35288/1 "2026-06-02T08:53:29Z")

</div>

> We have a specific requirement where we need to show okta login on a site (Sitecore) and user should redirect back to different site (salesforce)on different domain. This is cross domain user authentication.
> 
> we opted to use below script for embedding widget into our Sitecore site
> 
> [GitHub - okta/okta-signin-widget: HTML/CSS/JS widget that provides out-of-the-box authentication UX for your organization's apps · GitHub](https://github.com/okta/okta-signin-widget#showsigninandredirect)
> 
> callback functionalities like token exchange will be handled by salesforce. Is this approach correct? here redirect has been handled by salesforce site which does not hosts okta widget,
> 
> any suggestions?

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [June 5, 2026, 5:00am UTC](https://devforum.okta.com/t/cross-site-user-authentication/35288/2 "2026-06-05T05:00:46Z")

</div>

Hi,

The AuthJs library is supposed to handle the entire OIDC transaction, including initiating the Authorisation flow, making the Token request, and handling tokens. If you are able to achieve this in your setup, I don’t see a problem with the implementation. So make sure that the Salesforce site is using the token exchange with the same instance of the AuthJS (which initiated the request in Sitecore). Otherwise, you will face issues with the library.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [July 5, 2026, 5:01am UTC](https://devforum.okta.com/t/cross-site-user-authentication/35288/3 "2026-07-05T05:01:05Z")

</div>

Closed on July 5, 2026, 5:01am UTC

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