Is there a way to override the authorization made by OnAuthorization then setting restrictions via "Access rights" on a page in the CMS?
What is the problem you are trying to solve?
We have a problem then logging in with Azure AD account. The authorization is made before the user gets logged in, so I am wondering if there is a way to override this authorization?
There are a couple of guides on using Azure AD with Episerver. May be worth looking at the following:
David, is there any other way to override Access Rights behavior on a certain page type?
I want the access rights to still be set as usual, but instead of redirecting to login I want to still render the page, just with a flag set in the Model to only render certain portions on the view. I was looking at overriding OnAuthorization at the controller level, but I still get redirected to login.