umbraco / UmbracoIdentityExtensions

Code files & installation that enables easy extensibility points for ASP.Net Identity and the Umbraco back office
MIT License
38 stars 23 forks source link

Cannot use Identity Extensions (Active Directory) with Microsoft.Web.Redis.RedisSessionStateProvider #19

Closed jafferton91 closed 5 years ago

jafferton91 commented 7 years ago

Problem described fully on stack overflow with links to blog posts etc:

http://stackoverflow.com/questions/43783690/active-directory-authentication-for-umbraco-7-6-gets-stuck-in-a-re-direct-loop?noredirect=1#comment74720009_43783690

Problem in short: When Microsoft.Web.Redis.RedisSessionStateProvider is used for session state caching, the Azure AD extension does not work. It redirects in a loop back to /umbraco login page.

Shazwazza commented 7 years ago

Wonder if that is related to this: http://issues.umbraco.org/issue/U4-9799

jafferton91 commented 7 years ago

Potentially. I have just updated to 7.6.1 and can now replicate the issue in Umbraco 7.5.13, 7.6.0 & 7.6.1. Could this be a bug with 'Custom' session state providers in general?

Shazwazza commented 7 years ago

It could be I'm not really too sure. Perhaps you can try this with the SQL session state provider and see what happens. If it's a serialization issue than it should tell you whereas the redis one might just hide exceptions and do odd things, not sure. If you can replicate the behavior with the SQL session state one than at least it can be debugged locally.

nul800sebastiaan commented 5 years ago

The related issue has a closed PR on it now, so it looks like this issue might be fixed now. It's been open for quite a while so I'll close it for now and hope that everyone is happily using Redis! 👍