# SSO using saml between dotnet & java application

**URL:** <https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960>\
**Category:** Get Help\
**Tags:** aspnet-mvc, java, sso, auth0\
**Created:** [March 6, 2020, 11:58am UTC](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960 "2020-03-06T11:58:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbhatt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vbhatt/32/19610_2.png) [@vbhatt](https://community.auth0.com/u/vbhatt)\
**Post date:** [March 6, 2020, 11:58am UTC](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960/1 "2020-03-06T11:58:37Z")

</div>

Hello Guys,

Is it possible to create a SSO between .net & java application using SAML? We also want to use our custom database for authentication as well as for authorization. Any type of example or sample code will be highly appreciated.

Regards,  
Developer

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 6, 2020, 6:04pm UTC](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960/2 "2020-03-06T18:04:48Z")

</div>

Yes, it’s possible. Auth0 can be both SAML Service Provider and Identity Provider.

Docs are at [Test SAML SSO with Auth0 as Service Provider and Identity Provider](https://auth0.com/docs/protocols/saml/saml-configuration/auth0-as-identity-and-service-provider)

Java/Spring provide SAML libraries such as [Spring Security SAML](https://projects.spring.io/spring-security-saml/) (or others if not using Spring).

For .NET (which I’m not too familiar with) there are also lots of libraries available, such as [SAML 2.0 SSO Library for ASP.NET MVC, Core, C#, VB | ComponentPro](https://www.componentpro.com/products/saml), but I guess also open source ones.

Our Quickstarts are mostly around OAuth2 / OIDC, therefore not much sample code though specific for your technology stack and scenario.
