xentara-plugin v2.0.4
The Xentara Plugin Framework
|
An authenticator that uses OAuth 2.0 compatible JSON web tokens. More...
#include <xentara/security/Oauth2Authenticator.hpp>
Public Member Functions | |
internal auto | authenticate (std::string_view encodedToken, const Oauth2Scope &scope={}) const -> utils::eh::expected< Authorization, std::error_code > |
Authenticate using a JSON web token. | |
An authenticator that uses OAuth 2.0 compatible JSON web tokens.
internal auto xentara::security::Oauth2Authenticator::authenticate | ( | std::string_view | encodedToken, |
const Oauth2Scope & | scope = {} |
||
) | const -> utils::eh::expected< Authorization, std::error_code > |
Authenticate using a JSON web token.
encodedToken | The raw base64url encoded JSON web token. |
scope | The OAUth 2.0 scope value the token must contain. If you pass a default constructed Oauth2Scope object, the default scope configured in the Xentara OAuth 2.0 configuration will be used. |