Glacier2.PermissionsVerifier¶
- class Glacier2.PermissionsVerifier¶
-
Represents an object that checks user permissions. The Glacier2 router and other services use a
Glacier2.PermissionsVerifierPrxproxy when the user is authenticated using a user ID and password.Notes
The Slice compiler generated this skeleton class from Slice interface
::Glacier2::PermissionsVerifier.- abstractmethod checkPermissions(userId: str, password: str, current: Current) tuple[bool, str] | Awaitable[tuple[bool, str]]¶
Checks if a user is authorized to establish a session.
- Parameters:
userId (str) – The user ID.
password (str) – The user’s password.
current (Ice.Current) – The Current object for the dispatch.
- Returns:
- A tuple containing:
bool
trueif access is granted,falseotherwise.str The reason why access was denied.
- Return type:
- Raises:
PermissionDeniedException – Thrown when the user’s access is denied. This exception can be thrown instead of returning
falsewith a reason set in the reason out parameter.