Backoffice AD FS login Fails silently after a while. Starts looping
Hey guys.
i need your help.
We're building a solution that relies on AD FS login for the back office. We got the login working fine locally. But the issue is that after the solution's been running for an hour or so i production, the backoffice login stops working and will just loop the user back to the umbraco login screen with no error. To fix this we restart the app pool, but doing this every hour really sucks.
I noticed that when the login is failing the 302 umbraco cookie that's supposed to contain redirect info like:
And UMB_UCONTEXT and the like is missing it like so:
"cookies":[]
Also it seems like ADFS is authenticating the user as it should, but my guess is since the cookie is missing the umbraco info, that's why the user is just redirected to /umbraco.
in the logs when it's succeeding right after the ADFS Login is resolved we get:
2018-06-05 09:19:54,136 [P11940/D2/T33] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
2018-06-05 09:19:54,136 [P11940/D2/T33] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
2018-06-05 09:19:54,136 [P11940/D2/T33] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.ICacheRefresher
2018-06-05 09:19:54,136 [P11940/D2/T33] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.ICacheRefresher (took 0ms)
2018-06-05 09:19:54,198 [P11940/D2/T33] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: Login attempt succeeded for username ** from IP address **
None of these are there when it's failing, could it be issues with the plugin manager since it's not even trying to resolve? Or is that again because of the cookie.
Hi Aleksander
We have the same problem.
It works the first time then we need to restart the app pool to make it work again.
Where are you hosting your application?
We are running on azure.
I think it's a problem with umbraco itself. I wanted to debug the source code, but i havent been able to add other than umbraco.core, which didn't point me in the right direction.
We are hosting the app on our clients own servers.
Backoffice AD FS login Fails silently after a while. Starts looping
Hey guys.
i need your help.
We're building a solution that relies on AD FS login for the back office. We got the login working fine locally. But the issue is that after the solution's been running for an hour or so i production, the backoffice login stops working and will just loop the user back to the umbraco login screen with no error. To fix this we restart the app pool, but doing this every hour really sucks.
I noticed that when the login is failing the 302 umbraco cookie that's supposed to contain redirect info like:
And UMB_UCONTEXT and the like is missing it like so:
Also it seems like ADFS is authenticating the user as it should, but my guess is since the cookie is missing the umbraco info, that's why the user is just redirected to /umbraco.
I've also reported this on: https://github.com/umbraco/UmbracoIdentityExtensions
But i'm still making this post in case that any of you guys have an idea what to do next?
Here's our ADFS Authentication code if it's of any use. Cheers guys!
in the logs when it's succeeding right after the ADFS Login is resolved we get:
None of these are there when it's failing, could it be issues with the plugin manager since it's not even trying to resolve? Or is that again because of the cookie.
Hi Aleksander We have the same problem. It works the first time then we need to restart the app pool to make it work again. Where are you hosting your application? We are running on azure.
/ br Lars
I think it's a problem with umbraco itself. I wanted to debug the source code, but i havent been able to add other than umbraco.core, which didn't point me in the right direction.
We are hosting the app on our clients own servers.
is working on a reply...