10Duke Scale C++ Client
Loading...
Searching...
No Matches
OIDCBrowserFlowAuthenticationRequestMock.h
1#ifndef TENDUKE_TEST_MOCKS_OIDCBROWSERFLOWAUTHENTICATIONREQUESTMOCK_H
2#define TENDUKE_TEST_MOCKS_OIDCBROWSERFLOWAUTHENTICATIONREQUESTMOCK_H
3
4#include "oidc/OIDCBrowserFlowAuthenticationRequest.h"
5
6#include "gmock/gmock.h"
7
8namespace tenduke { namespace test { namespace mocks {
9
11{
12public:
13 MOCK_METHOD(std::string, buildAuthenticationRequestUrl, (), (const, override));
14 MOCK_METHOD((std::unique_ptr<tenduke::oidc::OIDCState>), handleCallback, (const std::string &redirectURI), (const, override));
15
16 static std::shared_ptr<OIDCBrowserFlowAuthenticationRequestMock> createShared()
17 {
18 return std::make_shared<OIDCBrowserFlowAuthenticationRequestMock>();
19 }
20};
21
22}}}
23
24
25#endif //TENDUKE_TEST_MOCKS_OIDCBROWSERFLOWAUTHENTICATIONREQUESTMOCK_H
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 BackendConfiguration.h:7