Umbraco 9 - Cant access restricted webpage when programmatically logged in
Hi
After programmatically logged in to Umbraco as a member I can't access the restricted page.
I've restricted access to a site in umbraco like follows
I have a member in the AdminMemberGroup.
I sign in the member like this:
var member = await mMemberManager.FindByEmailAsync(email);
var roles = await mMemberManager.GetRolesAsync(member);
await mSigninManager.SignInAsync(member, false);
Where mMember is IMemberManager
I check the User.Identity and it seems like I've been logged in
Umbraco 9 - Cant access restricted webpage when programmatically logged in
Hi
After programmatically logged in to Umbraco as a member I can't access the restricted page.
I've restricted access to a site in umbraco like follows
I have a member in the AdminMemberGroup.
I sign in the member like this:
Where mMember is IMemberManager
I check the User.Identity and it seems like I've been logged in
And all of the following return true
But when trying to access the restricted site I get redirected to the error page. Which should happen when I'm logged in but don't have access.
Why is this?
I am experiencing something similar. Have you managed to get to the bottom of this?
Regards,
Darren
hi - did you find a solution? thanks
is working on a reply...