Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::middleware::OAuth2Config Struct Reference

Provider endpoints, client credentials and flow settings for OAuth2. More...

#include <OAuth2.hpp>

Public Attributes

std::string client_id
 
std::string client_secret
 
std::string redirect_uri
 
std::string authorization_endpoint
 
std::string token_endpoint
 
std::string userinfo_endpoint
 
std::vector< std::string > scopes
 
bool use_pkce = true
 Send an S256 PKCE challenge (RFC 7636)
 
bool secure_cookies = false
 Mark the state/PKCE cookies Secure (enable behind HTTPS)
 
long connect_timeout_seconds = 5
 Provider connection timeout.
 
long request_timeout_seconds = 10
 Total time allowed per provider request.
 

Detailed Description

Provider endpoints, client credentials and flow settings for OAuth2.

Member Data Documentation

◆ authorization_endpoint

std::string orbit::middleware::OAuth2Config::authorization_endpoint

◆ client_id

std::string orbit::middleware::OAuth2Config::client_id

◆ client_secret

std::string orbit::middleware::OAuth2Config::client_secret

◆ connect_timeout_seconds

long orbit::middleware::OAuth2Config::connect_timeout_seconds = 5

Provider connection timeout.

◆ redirect_uri

std::string orbit::middleware::OAuth2Config::redirect_uri

◆ request_timeout_seconds

long orbit::middleware::OAuth2Config::request_timeout_seconds = 10

Total time allowed per provider request.

◆ scopes

std::vector<std::string> orbit::middleware::OAuth2Config::scopes

◆ secure_cookies

bool orbit::middleware::OAuth2Config::secure_cookies = false

Mark the state/PKCE cookies Secure (enable behind HTTPS)

◆ token_endpoint

std::string orbit::middleware::OAuth2Config::token_endpoint

◆ use_pkce

bool orbit::middleware::OAuth2Config::use_pkce = true

Send an S256 PKCE challenge (RFC 7636)

◆ userinfo_endpoint

std::string orbit::middleware::OAuth2Config::userinfo_endpoint

The documentation for this struct was generated from the following file: