[This is preliminary documentation and is subject to change.]
Authorizes user by finding appropriate access level to permission by supplied path.
Depending on particular implementation, rights may be fully or partially cached in memory.
Note: this authorization call returns AccessLevel object that may contain a complex data structure.
The final assertion of user's ability to perform a certain action is encapsulated in Permission.Check() method.
Call Permission.AuthorizeAndGuardAction(MemberInfo, ISession) to guard classes and methods from unauthorized access
Namespace: NFX.SecurityAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
Parameters
- user
- Type: NFX.Security User
A user to perform authorization for
- permission
- Type: NFX.Security Permission
An instance of permission to get
Return Value
Type: AccessLevelAccessLevel granted to specified permission
See Also