10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
OIDCClient.h
1#ifndef TENDUKE_OIDC_OIDCCLIENT_H
2#define TENDUKE_OIDC_OIDCCLIENT_H
3
4#include "./OIDCAuthenticationRequest.h"
5#include "./OIDCRefreshRequest.h"
6#include "./OIDCState.h"
7
8#include <memory>
9#include <string>
10
11namespace tenduke { namespace oidc {
12
13
22{
23public:
24 virtual ~OIDCClient() = default;
25
31 virtual std::unique_ptr<const tenduke::oidc::OIDCRefreshRequest> refresh(const std::shared_ptr<tenduke::oidc::OIDCState>& state) const = 0;
32
44 virtual std::string requestUserinfo(const std::string &accessToken) const = 0;
45};
46
47
48}}
49
50#endif // TENDUKE_OIDC_OIDCCLIENT_H
OpenID Connect -client.
Definition OIDCClient.h:22
virtual std::string requestUserinfo(const std::string &accessToken) const =0
Requests user information from "userinfo"-endpoint.
virtual std::unique_ptr< const tenduke::oidc::OIDCRefreshRequest > refresh(const std::shared_ptr< tenduke::oidc::OIDCState > &state) const =0
Refreshes the OIDC state.
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7