Struct AuthorizeRequest
Defined in File auth_models.hpp
Struct Documentation
-
struct AuthorizeRequest
Authorization request for /auth/authorize endpoint @verifies REQ_INTEROP_086.
Public Members
-
std::string grant_type
“client_credentials” or “refresh_token”
-
std::optional<std::string> client_id
-
std::optional<std::string> client_secret
-
std::optional<std::string> refresh_token
-
std::optional<std::string> scope
Requested scope/role.
Public Static Functions
-
static inline AuthorizeRequest from_json(const json &j)
-
static AuthorizeRequest from_form_data(const std::string &body)
-
static tl::expected<AuthorizeRequest, AuthErrorResponse> parse_request(const std::string &content_type, const std::string &body)
Parse AuthorizeRequest from HTTP request body with content-type detection.
- Parameters:
content_type – Content-Type header value
body – Request body
- Returns:
AuthorizeRequest on success, AuthErrorResponse on failure
-
std::string grant_type