Datasnap.DSAuth.TDSRoleComparison

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

TDSRoleComparison = (rcNoUserRoles, rcNoMethodRoles, rcUserRoleAllowed, rcUserRoleDenied, rcNoMatch);

C++

enum DECLSPEC_DENUM TDSRoleComparison : unsigned char { rcNoUserRoles, rcNoMethodRoles, rcUserRoleAllowed, rcUserRoleDenied, rcNoMatch };

Properties

Type Visibility Source Unit Parent
enum public
Datasnap.DSAuth.pas
Datasnap.DSAuth.hpp
Datasnap.DSAuth Datasnap.DSAuth

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.

See Also