1#ifndef TENDUKE_TEST_MOCKS_OIDCBROWSERFLOWAUTHENTICATIONREQUESTMOCK_H
2#define TENDUKE_TEST_MOCKS_OIDCBROWSERFLOWAUTHENTICATIONREQUESTMOCK_H
4#include "oidc/OIDCBrowserFlowAuthenticationRequest.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
14 MOCK_METHOD((std::unique_ptr<tenduke::oidc::OIDCState>),
handleCallback, (
const std::string &redirectURI), (
const,
override));
16 static std::shared_ptr<OIDCBrowserFlowAuthenticationRequestMock> createShared()
18 return std::make_shared<OIDCBrowserFlowAuthenticationRequestMock>();
An OIDC-authentication request, which handles the OIDC-flow, authenticating the user with browser.
Definition OIDCBrowserFlowAuthenticationRequest.h:19
virtual std::string buildAuthenticationRequestUrl() const =0
Creates the initial authenticationrequest URL.
virtual std::unique_ptr< tenduke::oidc::OIDCState > handleCallback(const std::string &redirectURI) const =0
Handles callback: performs consequent actions to authenticate.
Definition OIDCBrowserFlowAuthenticationRequestMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4