1#ifndef TENDUKE_TEST_MOCKS_OIDCCLIENTMOCK_H
2#define TENDUKE_TEST_MOCKS_OIDCCLIENTMOCK_H
4#include "oidc/OIDCClient.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
13 MOCK_METHOD((std::unique_ptr<const tenduke::oidc::OIDCRefreshRequest>),
refresh, (
const std::shared_ptr<tenduke::oidc::OIDCState>& state), (
const,
override));
14 MOCK_METHOD(std::string,
requestUserinfo, (
const std::string &accessToken), (
const,
override));
16 static std::shared_ptr<OIDCClientMock> createShared()
18 return std::make_shared<OIDCClientMock>();
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.
Definition OIDCClientMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4