Datasnap.DSAuth.TDSRoleComparison
| [–] Properties | |
|---|---|
| Type: enum | |
| Visibility: public | |
| Source: Datasnap.DSAuth.pas Datasnap.DSAuth.hpp
| |
| Unit: Datasnap.DSAuth | |
| Parent: Datasnap.DSAuth | |
Delphi
TDSRoleComparison = (rcNoUserRoles, rcNoMethodRoles, rcUserRoleAllowed, rcUserRoleDenied, rcNoMatch);
C++
enum DECLSPEC_DENUM TDSRoleComparison : unsigned char { rcNoUserRoles, rcNoMethodRoles, rcUserRoleAllowed, rcUserRoleDenied, rcNoMatch };
Description
Possible outcomes for comparing user roles with server method roles.
The possible values and meanings are:
- rcNoMethodRoles: The server method has no defined authorized or denied roles.
- rcNoUserRoles: The server method has defined authorized and/or denied roles, but there are no roles associated with the current user.
- rcUserRoleDenied: The server method had authorized and/or denied roles and so did the user, but based on the user's roles it is suggested that authorization be denied.
- rcUserRoleAllowed: The server method had authorized and/or denied roles and so did the user, and based on the user's roles it is suggested that authorization be granted.
- rcNoMatch: The server method had authorized and/or denied roles and so did the user, but none of the user's roles were in the authorized or denied roles list for the server method.