SSO in ASP.NET Webforms & .NET 8

Siddhant Singh 5 Reputation points
2024-08-14T20:03:00.8833333+00:00

Hi, I have an ASP.NET Webforms legacy web application using Asp Net Membership Login control and SQL Server as database to validate credentials and login.

On other hand, I have .NET 8 Web app using Cookie based Authentication with same database. But for DB operations like CRUD and validate user for login we are using Lambda Functions as an API.

Now how can I implement SSO within these two apps. Please help me out to integrate SSO because I am not able to figure out this.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,839 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,480 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,901 Reputation points
    2024-08-14T20:21:42.92+00:00

    first you need the two site to use a common domain (site1.mydomain.com, site2.mydomain.com or mydomain.com/site1, mydomain.com/site2.

    second you will to update the webform legacy app to use owin middleware and authentication. configure to use the Microsoft.Owin.Security.Interop. then you configure both site to use a common data protection key store location.

    https://learn.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-8.0

    Your other option, is to pick an oauth SSO server, and configure both sites for oauth support (asp.net 4.8 will again require owin middleware).


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.