Namespace reeflogic::reef_server_common::authn C++ API Reference¶
Headers at a Glance¶
| Header | Classes | Functions | Macros |
|---|---|---|---|
reef_server_common/authn_header_utility.h |
0 | 1 | 0 |
Header reef_server_common/authn_header_utility.h¶
Parsing helpers for the gRPC authorization metadata Bearer scheme.
Provides ExtractBearerToken, the single tokenisation point used by both reeflogic_server_admin and reeflogic_server AuthN interceptors before handing the token to commons::OidcTokenValidator. The helper trims ASCII whitespace, accepts a case-insensitive Bearer scheme prefix, and returns std::nullopt when the scheme or token is missing so callers can reject the request with UNAUTHENTICATED without duplicating parsing logic.
See also: reef_server_common/oidc_validator_config.h, server_survey/reef_survey_authn_filter.h
Functions¶
| Signature | Description | Referenced Types |
|---|---|---|
[[nodiscard]] std::optional<std::string> ExtractBearerToken(std::string_view authorization_header); |
Parses authorization metadata and extracts a Bearer token. Parsing behavior: - Trims ASCII whitespace around the full header value. - Accepts case-insensitive Bearer scheme prefix. - Trims ASCII whitespace around the token part. - Returns std::nullopt when scheme/token is missing. |
- |