# Always require user to login for SAML flow

**URL:** <https://community.auth0.com/t/always-require-user-to-login-for-saml-flow/151793>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [November 18, 2024, 3:50pm UTC](https://community.auth0.com/t/always-require-user-to-login-for-saml-flow/151793 "2024-11-18T15:50:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yokeharn.yeoh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yokeharn.yeoh/32/55938_2.png) [@yokeharn.yeoh](https://community.auth0.com/u/yokeharn.yeoh)\
**Post date:** [November 18, 2024, 3:50pm UTC](https://community.auth0.com/t/always-require-user-to-login-for-saml-flow/151793/1 "2024-11-18T15:50:48Z")

</div>

Hi,

I use Database connection to store my user.  
I have 2 web application, trying to authenticate with a user using SAML flow.  
All is working, except that every time the user send the AuthnRequest and redirect to the Auth0 login page, it always require user to provide username and password, which from what I understand, should automatically login without the login prompt, since the user already previously login few mins ago.

To provide some context, I was running the apps in localhost, and using Spring Web MVC with OpenSAML implementation.

Please help on how to allow user to login without the login prompt.

---

<div class="post-metadata">

**Author:** ![sonia598lewis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sonia598lewis/32/60569_2.png) [@sonia598lewis](https://community.auth0.com/u/sonia598lewis)\
**Post date:** [November 19, 2024, 6:24am UTC](https://community.auth0.com/t/always-require-user-to-login-for-saml-flow/151793/2 "2024-11-19T06:24:57Z")

</div>

Hello,  
It sounds like you’re encountering an issue with SAML authentication where users are prompted to log in again despite already being authenticated. This can often be due to session management or cookie handling issues.

Ensure that your session cookies are being properly set and maintained across requests. Additionally, verify that your SAML assertion is being correctly passed and validated by the Service Provider.

Best Regards,  
Sonia Lewis

---

<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:** [April 1, 2025, 8:01pm UTC](https://community.auth0.com/t/always-require-user-to-login-for-saml-flow/151793/3 "2025-04-01T20:01:17Z")

</div>

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