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

◆ createSession()

std::optional< SessionPrx > IceGrid::RegistryPrx::createSession ( std::string_view userId,
std::string_view password,
const Ice::Context & context = Ice::noExplicitContext ) const

Creates a client session.

Parameters
userIdThe user ID.
passwordThe password for the given user.
contextThe request context.
Returns
A proxy to the newly created session. This proxy is never null.
Exceptions
IceGrid::PermissionDeniedExceptionThrown when authentication or authorization fails.