Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
OAuth2.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <string>
#include <functional>
#include <memory>
#include <vector>
#include <orbit/http/HttpRequest.hpp>
#include <orbit/http/ResponseWriter.hpp>
#include <orbit/http/json.hpp>
Include dependency graph for OAuth2.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  orbit::middleware::OAuth2Config
 Provider endpoints, client credentials and flow settings for OAuth2. More...
 
class  orbit::middleware::OAuth2
 Authorization-code flow helper. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::middleware
 
namespace  orbit::middleware::detail
 

Functions

std::string orbit::middleware::detail::url_encode (const std::string &value)
 application/x-www-form-urlencoded / URI component encoding (RFC 3986 unreserved kept).
 
std::string orbit::middleware::detail::url_decode (const std::string &value)
 Decodes XX escapes and '+' as space.
 
std::string orbit::middleware::detail::pkce_challenge (const std::string &verifier)
 RFC 7636 S256: base64url(SHA-256(verifier)) without padding.