# Skip the lockbox prompt and automatically redirect to Client when the user is already logged in

**URL:** <https://community.auth0.com/t/skip-the-lockbox-prompt-and-automatically-redirect-to-client-when-the-user-is-already-logged-in/8430>\
**Category:** Get Help\
**Tags:** idp, lockjs, prompt, clients, connections\
**Created:** [October 10, 2017, 2:03am UTC](https://community.auth0.com/t/skip-the-lockbox-prompt-and-automatically-redirect-to-client-when-the-user-is-already-logged-in/8430 "2017-10-10T02:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik.selvakumar](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@karthik.selvakumar](https://community.auth0.com/u/karthik.selvakumar)\
**Post date:** [October 10, 2017, 2:03am UTC](https://community.auth0.com/t/skip-the-lockbox-prompt-and-automatically-redirect-to-client-when-the-user-is-already-logged-in/8430/1 "2017-10-10T02:03:56Z")

</div>

1. I have created new Enterprise connection with SAMLP Identity Provider. (Connection → Enterprise → SAMLP Identity Provider) and configured Salesforce as IdP and Auth0 as SP.
2. Also I configured IdP initiation SSO to a Client A. (Clients → New Client → A)
3. I enabled Salesforce connection for both Client A and Client B
4. When I login through Salesforce, auth0 automatically takes me to Client A.
5. **But when I go to Client B the lock box shows me a prompt of previously logged in user.**
6. Is there a way to seamlessly log in into other clients when the session is valid ? why does the prompt even appear when the user is already logged in.

Note: It works when I send the connection=Salesforce-Test in Client B’s SAML IdP URL but I want it to be the default behavior.

**Flow 1**

Salesforce (IdP) → Auth0 (SP) → Client A (Redirect) ==\> Successful login without lock box prompt

**Flow 2**

Client B (Redirect) → Auth0 Lockbox with previous logged in user (I don’t want user to see this) → Click on the username → Client B logged in

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 10, 2017, 4:49pm UTC](https://community.auth0.com/t/skip-the-lockbox-prompt-and-automatically-redirect-to-client-when-the-user-is-already-logged-in/8430/2 "2017-10-10T16:49:49Z")

</div>

At this time the default behavior of Lock in the hosted login page is indeed to still present the end-user with that option screen; I’ve seen discussions about not having that step and proceed to automatically provide a response without end-user interaction, but at this time I don’t have any definitive information available in terms of how/when that would be a possibility.

As you mentioned, if the client application makes the connection explicit then the screen is bypassed and if the client application specifies `prompt=none` then the experience would be similar. Although with `prompt=none` you’re guaranteed that the request will not block if end-user interaction is required so you could [perform such request behind the scenes](https://auth0.com/docs/api-auth/tutorials/silent-authentication) and automatically treat the user as logged in if the response is successful.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/skip-the-lockbox-prompt-and-automatically-redirect-to-client-when-the-user-is-already-logged-in/8430/3 "2018-03-02T05:56:53Z")

</div>


