10Duke Enterprise C++ Client
|
#include <AutoDiscovery.h>
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::OAuthBackendConfiguration > | getOAuthConfiguration () const |
Returns discovered OAuth-configuration. | |
std::shared_ptr< const tenduke::oidc::OIDCConfiguration > | getOOIDCConfiguration () const |
Returns the discovered OIDC-configuration WITHOUT the signing key. | |
Friends | |
class | AutoDiscovery |
|
inline |
Constructs new instance.
oauthConfiguration | - |
oidcConfiguration | - |
jwksDocument | - |
|
inline |
Returns discovered OAuth-configuration.
|
inline |
Returns the discovered OIDC-configuration WITHOUT the signing key.
To get the configuration WITH the signing key, use AutoDiscovery::toOIDCConfiguration()
tenduke::crypto::CryptoException | if problems with the signing key |
tenduke::json::JSONParsingException | when server response is not valid JSON |
tenduke::oauth::oidc::OIDCException | when the JWKS-document is not valid JSON |