After upgrading Umbraco CMS from 7.5.4 to 7.11.1 version I have a problem with the login, it keeps logout me every 1 min! Digging in the forums, common questions and the code I've got, I updated the owin:startup setting from FortressOwinStartup to UmbracoDefaultOwinStartup! This update was due to the Umbraco2FA package which depends on Fortress!
After returning to UmbracoDefaultOwinStartup the problem was solved, but now the Umbraco2FA is not working! The setup is working ok, but when logout and then login it is not showing the 2FA login form!
Is there a way to make the 2FA work UmbracoDefaultOwinStartup?
I have fixed this by creating a new owin startup class, which inherits UmbracoDefaultOwinStartup! I got the Fortress source code and extended it by configuring the following cookies:
I agree that we shouldn't change owin startup setting, I've made an update allow to call the owin setup manually, check my pull-request for more details:
https://github.com/Offroadcode/Umbraco-2FA/pull/15
owin startup and 2FA
After upgrading Umbraco CMS from 7.5.4 to 7.11.1 version I have a problem with the login, it keeps logout me every 1 min! Digging in the forums, common questions and the code I've got, I updated the owin:startup setting from FortressOwinStartup to UmbracoDefaultOwinStartup! This update was due to the Umbraco2FA package which depends on Fortress!
After returning to UmbracoDefaultOwinStartup the problem was solved, but now the Umbraco2FA is not working! The setup is working ok, but when logout and then login it is not showing the 2FA login form!
Is there a way to make the 2FA work UmbracoDefaultOwinStartup?
I am getting this behaviour as well Everything else seems to be working fine but I'm getting logged out after a minute or so
I have fixed this by creating a new owin startup class, which inherits UmbracoDefaultOwinStartup! I got the Fortress source code and extended it by configuring the following cookies:
Now everything works fine!
that sounds good!
ive tried to do the same by getting the Orc.Fortress source and modifying the FortressOwinStartup which inherits from UmbracoDefaultOwinStartup
i tried copying what the default class is doing when setting these cookies
but i havent been able to fix the issue, at least whilst still keeping the 2FA functionality
...if possible, could you post the source code you wrote?
ah, have fixed it, all we did was to ensure that the overridden method ConfigureServices calls the base method first
so in https://github.com/Offroadcode/Umbraco-2FA/blob/master/Umbraco2FA/Umbraco/Fortress/Startup/FortressOwinStartup.cs, from line 34 onwards it looks like:
that way, presumably, all of the cookies are set as they were originally
Thanks for discussing and reporting back on the fix for this one folks. I've logged this in our repos here https://github.com/Offroadcode/Umbraco-2FA/issues/12
I agree that we shouldn't change owin startup setting, I've made an update allow to call the owin setup manually, check my pull-request for more details: https://github.com/Offroadcode/Umbraco-2FA/pull/15
Cheers, Nick
is working on a reply...