User profile authorizers: (v6.1)
Some authorizers only apply on the user profile:
1) Roles
To check roles on the user profile, you first need to compute them with an AuthorizationGenerator
.
-
RequireAnyRoleAuthorizer
checks that a user profile has at least one of the expected roles or at least one role if none is defined -
RequireAllRolesAuthorizer
checks that a user profile has all the expected roles
2) Authentication levels
-
IsAnonymousAuthorizer
checks that the user is anonymous (no profile or anAnonymousProfile
) -
IsAuthenticatedAuthorizer
checks that the user has the profile which is not anAnonymousProfile
-
IsFullyAuthenticatedAuthorizer
checks that the user is authenticated, but not remembered (isRemembered
method) -
IsRememberedAuthorizer
checks that the user is authenticated and only remembered (isRemembered
method)
3) Others
-
CheckProfileTypeAuthorizer
checks the current profile type of the authenticated user -
RequireAnyAttributeAuthorizer
checks that the current profile has the appropriate attribute