ark::rest::Authorization

Defined in header “ark/rest/authorization.hh”.


A structure that is used to handle reporting basic authorization information to REST callbacks.

Methods

  • operator bool()
    Returns true if the credentials are valid, false otherwise.

  • bool is_admin()
    Returns true if this user is an administrator, or false otherwise. This makes a call to Cognito’s servers to determine this information, which might take some time (or exception out).

Variables

  • bool valid= false
    If the credentials were valid or not.

  • std::string username
    The username of the person making this request.

  • std::string scope
    Any associated scopes with this request.

  • std::string client_id
    The client ID this request came from.

  • aws::IdentityProviderClientPtr provider
    A pointer to the identity provider client used for this authorization.

  • std::string user_pool_id
    The identifier of the user pool that we check for authorization.