A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
authorization_codec.cc File Reference
#include "a11/actions/authorization.h"
#include "a11/actions/authorization_codec_internal.h"
#include <algorithm>
#include <cctype>
#include <cstdint>
#include <string>
#include <string_view>
#include <absl/status/status.h>
#include <absl/status/status_macros.h>
#include <absl/status/statusor.h>
#include <absl/strings/escaping.h>
#include <absl/strings/str_cat.h>
#include <nlohmann/json.hpp>
#include "a11/data/msgpack.h"

Namespaces

namespace  a11
 
namespace  a11::actions
 
namespace  a11::actions::internal
 

Functions

std::string a11::actions::internal::UnpaddedWebSafeBase64 (std::string_view value)
 
absl::StatusOr< std::string > a11::actions::EncodeAuthorization (const AuthorizationEnvelope &envelope)
 Validate and canonically encode an authorization envelope as MessagePack.
 
absl::StatusOr< AuthorizationEnvelope > a11::actions::DecodeAuthorization (std::string_view value)
 Decode a canonical, bounded native authorization value.
 
absl::StatusOr< std::string > a11::actions::AuthorizationToText (const AuthorizationEnvelope &envelope)
 Convert a native value to an ASCII physical HTTP header.
 
absl::StatusOr< AuthorizationEnvelope > a11::actions::AuthorizationFromText (std::string_view value)
 Convert an ASCII physical HTTP header to the native envelope.