Glacier2.PermissionsVerifier

class Glacier2.PermissionsVerifier

Bases: Object, ABC

Represents an object that checks user permissions. The Glacier2 router and other services use a Glacier2.PermissionsVerifierPrx proxy 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 true if access is granted, false otherwise.

  • str The reason why access was denied.

Return type:

tuple[bool, str] | Awaitable[tuple[bool, str]]

Raises:

PermissionDeniedException – Thrown when the user’s access is denied. This exception can be thrown instead of returning false with a reason set in the reason out parameter.

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str