Sustainsys / Saml2

Saml2 Authentication services for ASP.NET
Other
960 stars 602 forks source link

Connect OKTA using Owin with aspnetmembership (website-C#) #660

Closed FACAMK closed 7 years ago

FACAMK commented 7 years ago

Hi,

I've been struggling to setup SAML implementation of OKTA, Kentor and the asp.net membership for some reason, and I've been requested to do the OWIN implementation. Is this possible, and if so how?

AndersAbel commented 7 years ago

Yes, it's possible, but you will have to do some coding. The standard ASP.NET application template contains the code required to use owin middlewares together with ASP.NET Identity. There is no direct dependency between the owin middleware and ASP.NET Identity, so you can write your own AuthenticationController that uses an ASP.NET Membership database.

While it's possible, I'd definitely recommend against it as ASP.NET Membership's password storage (if you still will allow passwords for some users) is outdated and not considered secure any more.