# Authenticate users using Okta SignIn without redirecting the users to Okta page

**URL:** <https://devforum.okta.com/t/authenticate-users-using-okta-signin-without-redirecting-the-users-to-okta-page/26360>\
**Category:** OAuth/OIDC\
**Created:** [January 14, 2024, 10:55am UTC](https://devforum.okta.com/t/authenticate-users-using-okta-signin-without-redirecting-the-users-to-okta-page/26360 "2024-01-14T10:55:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurubhat](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Gurubhat](https://devforum.okta.com/u/Gurubhat)\
**Post date:** [January 14, 2024, 10:55am UTC](https://devforum.okta.com/t/authenticate-users-using-okta-signin-without-redirecting-the-users-to-okta-page/26360/1 "2024-01-14T10:55:59Z")

</div>

How can we authenticate users using Okta SignIn without redirecting the users to Okta page?

In our ecommerce site, we want to integrate okta API, when the user login which should not redirect to okta login page, How can we achieve this without redirecting to okta login page?

1. it should authenticate the user from background
2. once the authentication completes, it returns the access token to load the application.

---

<div class="post-metadata">

**Author:** ![nicole](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@nicole](https://devforum.okta.com/u/nicole)\
**Post date:** [January 17, 2024, 6:58pm UTC](https://devforum.okta.com/t/authenticate-users-using-okta-signin-without-redirecting-the-users-to-okta-page/26360/2 "2024-01-17T18:58:37Z")

</div>

It sounds like you’re looking for embedded authentication, which you can do with [Okta Auth JS](https://developer.okta.com/docs/guides/auth-js/main/). I suggest checking out our Okta [AuthJS embedded auth sample app](https://github.com/okta/okta-auth-js/tree/master/samples/generated/react-embedded-auth-with-sdk), which demonstrates how to do do this. You can configure this sample with your own org and client to test against.

---

<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:** [January 18, 2024, 6:59pm UTC](https://devforum.okta.com/t/authenticate-users-using-okta-signin-without-redirecting-the-users-to-okta-page/26360/3 "2024-01-18T18:59:26Z")

</div>

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