Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ checkPermissionsAsync() [2/2]

std::function< void()> Glacier2::PermissionsVerifierPrx::checkPermissionsAsync ( std::string_view userId,
std::string_view password,
std::function< void(bool, std::string)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Checks if a user is authorized to establish a session.

Parameters
userIdThe user ID.
passwordThe user's password.
responseThe response callback. It accepts:
  • returnValue true if access is granted, false otherwise.
  • reason The reason why access was denied.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.