# Legacy ASP.NET Support with .NET 4.x

**URL:** <https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781>\
**Category:** Dev to Dev Hub\
**Tags:** apis, application\
**Created:** [June 9, 2025, 7:35pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781 "2025-06-09T19:35:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlitos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/carlitos/32/75204_2.png) [@carlitos](https://community.auth0.com/u/carlitos)\
**Post date:** [June 9, 2025, 7:35pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/1 "2025-06-09T19:35:26Z")

</div>

Does auth0 support legacy ASP. NET with .NET 4.x (not .NET core or standard)? I inherited a legacy app and would like to use auth0 because they want to add a mobile app to their offering but right now authentication is done via legacy webforms. I do plan on modernizing this app to .NET Core soon, but can’t right at this moment.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 9, 2025, 10:49pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/3 "2025-06-09T22:49:23Z")

</div>

Hi @carlitos,

Welcome to the Auth0 Community !

For [ASP.NET](http://ASP.NET) legacy apps you can follow the guidelines for the [ASP.NET OWIN quickstarts](https://auth0.com/docs/quickstart/webapp/aspnet-owin/interactive) to help integrate your application with Auth0. This version will still support your 4.x version, but updating to a .NET Core sounds like a great plan for the future.

I hope this helps!  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![carlitos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/carlitos/32/75204_2.png) [@carlitos](https://community.auth0.com/u/carlitos)\
**Post date:** [June 10, 2025, 1:29am UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/4 "2025-06-10T01:29:01Z")

</div>

Thanks - what I’m really interested in is how Auth0 or OWIN handles creating the actual user session cookie. Secondarily, will this work side-by-side with that legacy ASP. NET app along with a modern API build in .NET Core? Will Auth0 return a JWT for the newer stuff? I am proposing this because they want to add the mobile app prior to upgrading the legacy app which means I need to bootstrap a web API that will live side-by-side with the legacy ASP. NET app.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 10, 2025, 5:38pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/5 "2025-06-10T17:38:48Z")

</div>

Hi @carlitos.

Lets break it down here.

> [@carlitos](#):
>
> how Auth0 or OWIN handles creating the actual user session cookie

When integrating ASP. NET app with Auth0, the ASP. NET (OWIN) SDK follows the standard [Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow) ( this is also when an SSO session cookie is created - see [Auth0 Session Layer](https://auth0.com/docs/manage-users/sessions/session-layers) documentation), so after a code was exchanged for a token the session within your application is created by the cookie middleware ( as described in the Configuration of the middleware part of the SDK ).

> [@carlitos](#):
>
> Secondarily, will this work side-by-side with that legacy ASP. NET app along with a modern API build in .NET Core?

Sure! You can integrate all this parts within Auth0.

1. **Legacy ASP. NET App:** A “Regular Web Application” in Auth0.
2. **Modern .NET Core API:** A separate “API” in Auth0.
3. **Mobile App:** A “Native Application” that uses the [Authorization Code Flow with PKCE](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce)

> [@carlitos](#):
>
> Will Auth0 return a JWT for the newer stuff?

My guess is that you are referring to the mobile application. Auth0 returns a standard ID token when your users authenticate in the legacy app,but you can make a call using your modern API as an audience identifier so you can retrieve a token for your mobile app as well. If using one of our SDKs, this will check automatically for the auth0 SSO cookie created earlier and retrieve a new Access Token.

I hope this helps clarify things a bit better, and if you have other questions let me know.  
Thanks,  
Remus

---

<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:** [June 24, 2025, 5:39pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/6 "2025-06-24T17:39:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [September 5, 2025, 8:33pm UTC](https://community.auth0.com/t/legacy-asp-net-support-with-net-4-x/187781/7 "2025-09-05T20:33:51Z")

</div>


