Reputation: 37
I have integrated Sustainsys Saml2 library with my ASP.NET MVC 5 website. I am able to get the SSO Login done by OneLogin, but when I am trying to redirect to my [Authorize] pages (Dashboard), always the app redirect to Login page. I tried to create my externalLoginCallBack method to be called after ACS method and set the FormsAuthentication.SetAuthCookie, but it didn't work.
The .ASPXAUTH
always is empty after call [Authorize] methods.
Have you guys seen this issue before?
I really appreciate any help. Thanks
Upvotes: 0
Views: 919
Reputation: 69260
The Saml2Controller in the nuget package calls the SessionAuthenticationModule
to set a session cookie. It is more flexible than the FormsAuthenticationModule as it allows full claims identities. But otherwise they work the same.
Ensure that you have loaded the SessionAuthenticationModule in the web.config.
Upvotes: 1