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

◆ authorizeAsync()

virtual void Glacier2::AsyncSSLPermissionsVerifier::authorizeAsync ( SSLInfo info,
std::function< void(bool returnValue, std::string_view reason)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current ) const
pure virtual

Checks if a user is authorized to establish a session.

Parameters
infoThe SSL information.
responseThe response callback. It accepts:
  • returnValue true if access is granted, false otherwise.
  • reason The reason why access was denied.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
Glacier2::PermissionDeniedExceptionThrown 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.