|
10Duke Enterprise C++ Client
|
#include <OIDCResourceOwnerPasswordFlow.h>
OIDC authentication service, which uses OAuth Resource Owner Password Credentials Grant.
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::OIDCResourceOwnerPasswordRequest > | authenticate (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::OIDCRefreshRequest > | refresh (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::OIDCConfiguration > | oidcConfiguration |
| OIDC-configuration. | |
| const std::shared_ptr< const tenduke::jwt::JWTParser > | parseJWT |
| JWT-parse for parsing ID-token. | |
| const std::shared_ptr< const tenduke::http::HTTPClient > | http |
| HTTP-client. | |
| 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.
| oidcConfiguration | - |
| oauthClient | - |
| jwtParser | - |
| httpClient | - |
|
virtual |
Authenticates the user.
| scopes | - |