10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow Class Reference

#include <OIDCResourceOwnerPasswordFlow.h>

Detailed Description

OIDC authentication service, which uses OAuth Resource Owner Password Credentials Grant.

Inheritance diagram for tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow:
tenduke::oidc::BaseOIDCClient tenduke::oidc::OIDCClient

Public Member Functions

 OIDCResourceOwnerPasswordFlow (const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow > &oauthClient, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient)
 Constructs new instance.
 
virtual std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequestauthenticate (const std::string &scopes) const
 Authenticates the user.
 
- Public Member Functions inherited from tenduke::oidc::BaseOIDCClient
 BaseOIDCClient (const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::oauth::OAuthClient > &oauthClient, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient)
 Constructs new instance.
 
std::unique_ptr< const tenduke::oidc::OIDCRefreshRequestrefresh (const std::shared_ptr< tenduke::oidc::OIDCState > &state) const override
 Refreshes the OIDC state.
 
std::string requestUserinfo (const std::string &accessToken) const override
 Requests user information from "userinfo"-endpoint.
 

Additional Inherited Members

- Static Protected Member Functions inherited from tenduke::oidc::BaseOIDCClient
static std::string ensureOpenIDScope (const std::string &scopes)
 Checks if provided scopes have openid among them.
 
- Protected Attributes inherited from tenduke::oidc::BaseOIDCClient
const std::shared_ptr< const tenduke::oidc::OIDCConfigurationoidcConfiguration
 OIDC-configuration.
 
const std::shared_ptr< const tenduke::jwt::JWTParserparseJWT
 JWT-parse for parsing ID-token.
 
const std::shared_ptr< const tenduke::http::HTTPClienthttp
 HTTP-client.
 

Constructor & Destructor Documentation

◆ OIDCResourceOwnerPasswordFlow()

tenduke::oauth::ropg::OIDCResourceOwnerPasswordFlow::OIDCResourceOwnerPasswordFlow ( const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &  oidcConfiguration,
const std::shared_ptr< const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow > &  oauthClient,
const std::shared_ptr< const ::tenduke::jwt::JWTParser > &  jwtParser,
const std::shared_ptr< const ::tenduke::http::HTTPClient > &  httpClient 
)

Constructs new instance.

Parameters
oidcConfiguration-
oauthClient-
jwtParser-
httpClient-

Member Function Documentation

◆ authenticate()

std::unique_ptr<::OIDCResourceOwnerPasswordRequest > tenduke::oauth::ropg::OIDCResourceOwnerPasswordFlow::authenticate ( const std::string &  scopes) const
virtual

Authenticates the user.

Parameters
scopes-
Returns
-

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