10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::oidc::AutoDiscoveryResult Class Reference

#include <AutoDiscovery.h>

Detailed Description

Result of OIDC auto-configuration query.

IMPORTANT NOTE: This class does not contain parsed representation of the verification keys. In order to extract the verification keys, use tenduke::oauth::oidc::AutoDiscovery -service. Rationale: Instances of this class might be passed around serialized and instances of tenduke::crypto::PublicKey might contain unserializable elements.

Public Member Functions

 AutoDiscoveryResult (std::shared_ptr< const tenduke::oauth::OAuthBackendConfiguration > oauthConfiguration, std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration, std::string jwksDocument)
 Constructs new instance.
 
std::shared_ptr< const tenduke::oauth::OAuthBackendConfigurationgetOAuthConfiguration () const
 Returns discovered OAuth-configuration.
 
std::shared_ptr< const tenduke::oidc::OIDCConfigurationgetOOIDCConfiguration () const
 Returns the discovered OIDC-configuration WITHOUT the signing key.
 

Friends

class AutoDiscovery
 

Constructor & Destructor Documentation

◆ AutoDiscoveryResult()

tenduke::oidc::AutoDiscoveryResult::AutoDiscoveryResult ( std::shared_ptr< const tenduke::oauth::OAuthBackendConfiguration oauthConfiguration,
std::shared_ptr< const tenduke::oidc::OIDCConfiguration oidcConfiguration,
std::string  jwksDocument 
)
inline

Constructs new instance.

Parameters
oauthConfiguration-
oidcConfiguration-
jwksDocument-

Member Function Documentation

◆ getOAuthConfiguration()

std::shared_ptr< const tenduke::oauth::OAuthBackendConfiguration > tenduke::oidc::AutoDiscoveryResult::getOAuthConfiguration ( ) const
inline

Returns discovered OAuth-configuration.

Returns
-

◆ getOOIDCConfiguration()

std::shared_ptr< const tenduke::oidc::OIDCConfiguration > tenduke::oidc::AutoDiscoveryResult::getOOIDCConfiguration ( ) const
inline

Returns the discovered OIDC-configuration WITHOUT the signing key.

To get the configuration WITH the signing key, use AutoDiscovery::toOIDCConfiguration()

Exceptions
tenduke::crypto::CryptoExceptionif problems with the signing key
tenduke::json::JSONParsingExceptionwhen server response is not valid JSON
tenduke::oauth::oidc::OIDCExceptionwhen the JWKS-document is not valid JSON

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