1#ifndef SOURCEMETA_CORE_OAUTH_REVOCATION_H_
2#define SOURCEMETA_CORE_OAUTH_REVOCATION_H_
4#ifndef SOURCEMETA_CORE_OAUTH_EXPORT
5#include <sourcemeta/core/oauth_export.h>
8#include <sourcemeta/core/crypto.h>
9#include <sourcemeta/core/http.h>
15namespace sourcemeta::core {
56SOURCEMETA_CORE_OAUTH_EXPORT
58 const std::string_view token_type_hint,
80SOURCEMETA_CORE_OAUTH_EXPORT
84 const std::function<
void(std::string_view, std::string_view)> &on_other)
114SOURCEMETA_CORE_OAUTH_EXPORT
std::string_view token
The token to act on (RFC 7009 Section 2.1).
Definition oauth_revocation.h:34
std::string_view token_type_hint
Definition oauth_revocation.h:37
SOURCEMETA_CORE_OAUTH_EXPORT auto oauth_revocation_outcome(const HTTPStatus status) noexcept -> OAuthRevocationOutcome
constexpr std::string_view OAUTH_TOKEN_TYPE_HINT_REFRESH_TOKEN
Definition oauth_revocation.h:25
SOURCEMETA_CORE_OAUTH_EXPORT auto oauth_build_revocation_request(const std::string_view token, const std::string_view token_type_hint, SecureString &sink) -> void
OAuthRevocationOutcome
Definition oauth_revocation.h:90
constexpr std::string_view OAUTH_TOKEN_TYPE_HINT_ACCESS_TOKEN
Definition oauth_revocation.h:20
SOURCEMETA_CORE_OAUTH_EXPORT auto oauth_parse_revocation_request(const std::string_view body, SecureString &storage, OAuthTokenLookupRequest &result, const std::function< void(std::string_view, std::string_view)> &on_other) -> bool
@ Error
Definition oauth_device.h:136
@ Success
Definition oauth_revocation.h:93
@ Retry
Definition oauth_revocation.h:96