CCF
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
ccf::EmptyAuthnPolicy Class Reference

#include <empty_auth.h>

Inherits ccf::AuthnPolicy.

Public Member Functions

std::unique_ptr< AuthnIdentityauthenticate (ccf::kv::ReadOnlyTx &, const std::shared_ptr< ccf::RpcContext > &, std::string &) override
 
void set_unauthenticated_error (std::shared_ptr< ccf::RpcContext >, std::string &&) override
 
std::optional< OpenAPISecuritySchemaget_openapi_security_schema () const override
 
std::string get_security_scheme_name () override
 
- Public Member Functions inherited from ccf::AuthnPolicy
virtual ~AuthnPolicy ()=default
 

Static Public Attributes

static constexpr auto SECURITY_SCHEME_NAME = "no_auth"
 

Member Function Documentation

◆ authenticate()

std::unique_ptr< AuthnIdentity > ccf::EmptyAuthnPolicy::authenticate ( ccf::kv::ReadOnlyTx tx,
const std::shared_ptr< ccf::RpcContext > &  ctx,
std::string &  error_reason 
)
overridevirtual

Implements ccf::AuthnPolicy.

◆ get_openapi_security_schema()

std::optional< OpenAPISecuritySchema > ccf::EmptyAuthnPolicy::get_openapi_security_schema ( ) const
inlineoverridevirtual

Implements ccf::AuthnPolicy.

◆ get_security_scheme_name()

std::string ccf::EmptyAuthnPolicy::get_security_scheme_name ( )
inlineoverridevirtual

Implements ccf::AuthnPolicy.

◆ set_unauthenticated_error()

void ccf::EmptyAuthnPolicy::set_unauthenticated_error ( std::shared_ptr< ccf::RpcContext ctx,
std::string &&  error 
)
overridevirtual

Reimplemented from ccf::AuthnPolicy.

Member Data Documentation

◆ SECURITY_SCHEME_NAME

constexpr auto ccf::EmptyAuthnPolicy::SECURITY_SCHEME_NAME = "no_auth"
staticconstexpr

The documentation for this class was generated from the following files: