Ok, so the page can be accessed properly by the user whom is assigned the role. The only problem is I can't use the login page and redirect to the page. When I attempt to provide a url
demo.com/sitefinity/login?returnUrl=/demo/example/pages , user logs in but page does not display (error , you do not have permission to access url).
demo.com/sitefinity/demo/example/pages , works .... :/
I have had a similar problem before. Does the returnUrl appear to be not working? Like it will stay in the url but the page will not redirect?
If so try turning of caching for that page and see if it works. That is what solved it for me.
I'm using SF version 6.3.5000.
I have a page that requires authentication /test/user-pages
If you are already logged in, then it shows. But if you are not logged in/authenticated, it shows a 401 error and not the /sitefinity with redirect.
I've updated some code in global.asax. Could this affect it?
No login status widget anywhere.
What I notice, when i put in a url to a page requiring authentication, the url in the browser stats the same. It does not redirect to the login page, nor does any url param get included/passed (for return or anything). It just simply shows a 401.
Hello, been a long time since this. Found in a response on another thread the perfect solution. Not sure if I'm just patching something wrong, or if this is by design, but nevertheless, works well. The added benefit I believe is i can also create my own custom login page. Here are the steps
Administration -> Settings -> Advanced -> Project -> DefaultSite
There you have the properties FrontEndLoginPageUrl / FrontEndLoginPageId.