November Happy Hour will be moved to Thursday December 5th.

Override authorization for "Access rights" on a page

Vote:
 

Hi all,

Is there a way to override the authorization made by OnAuthorization then setting restrictions via "Access rights" on a page in the CMS?  

#206486
Aug 22, 2019 11:23
Vote:
 

Hello Ola

What is the problem you are trying to solve?

David

#206496
Aug 22, 2019 13:30
Vote:
 

Hi David, 

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?

#206498
Aug 22, 2019 13:44
Vote:
 

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.

#210429
Nov 22, 2019 20:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.