# Silent Login with saml connection

**URL:** <https://community.auth0.com/t/silent-login-with-saml-connection/184672>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [March 28, 2025, 8:43pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672 "2025-03-28T20:43:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mladenUST](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mladenust/32/73965_2.png) [@mladenUST](https://community.auth0.com/u/mladenUST)\
**Post date:** [March 28, 2025, 8:43pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672/1 "2025-03-28T20:43:11Z")

</div>

I have a B2B subscription with an enterprise SAML and email connection. I’m trying to implement a silent login where if the user is already signed in with their enterprise SSO provider they should get logged in even if they don’t have an active auth0 session. Is this possible? I’ve tried using the authorize API with prompt = none and I’ve also tried specifying the connection name but I always see the response login required even for users who I know have signed into sso

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 28, 2025, 10:36pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672/3 "2025-03-28T22:36:29Z")

</div>

Hi @mladenUST

Welcome to the Auth Community!

It appears that you are talking about [IdP Initiated SSO](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/identity-provider-initiated-single-sign-on).

However, IdP Initiated SSO flows can carry security risks such as [Login CSRF Attacks](https://support.detectify.com/support/solutions/articles/48001048951-login-csrf). You can read more about that in the documentation provided above.

If you have any other questions, feel free to let me know!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![mladenUST](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mladenust/32/73965_2.png) [@mladenUST](https://community.auth0.com/u/mladenUST)\
**Post date:** [March 31, 2025, 2:36pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672/4 "2025-03-31T14:36:15Z")

</div>

Hi @nik.baleca thanks for the reply.

Would IDP initiated SSO work in the scenario where the user goes directly to my app and not through some sso portal?

Do you know of any examples I can use as a reference, I can’t really find anything.

Thanks,  
Mladen

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 31, 2025, 7:11pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672/5 "2025-03-31T19:11:42Z")

</div>

Hi again,

Usually, and IdP Initiated flow would be executed through a dashboard/portal/login butto, however, you can configure [Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication) for your application in order to pass in the specific connection to an `/authorize` or `/login` endpoint whenever an user reaches the website.

Unfortunately, there are no examples or sample applications provided for specific applications. There is a sample app available on Github sor [GitHub - auth0-samples/auth0-aspnet-saml-idp-initiated](https://github.com/auth0-samples/auth0-aspnet-saml-idp-initiated).

If I can help with anything else, let me know!

Kind Regards,  
Nik

---

<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 14, 2025, 7:12pm UTC](https://community.auth0.com/t/silent-login-with-saml-connection/184672/6 "2025-04-14T19:12:02Z")

</div>

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