1#ifndef TENDUKE_TEST_MOCKS_OIDCDEVICEAUTHENTICATIONREQUESTMOCK_H
2#define TENDUKE_TEST_MOCKS_OIDCDEVICEAUTHENTICATIONREQUESTMOCK_H
4#include "oidc/device/OIDCDeviceAuthenticationRequest.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
14 MOCK_METHOD((std::unique_ptr<tenduke::oidc::OIDCState>),
accessTokenRequest, (), (
override));
15 MOCK_METHOD(
void,
cancel, (), (
override));
17 static std::shared_ptr<OIDCDeviceAuthenticationRequestMock> createShared()
19 return std::make_shared<OIDCDeviceAuthenticationRequestMock>();
Device Authorization Response.
Definition DeviceAuthorizationResponse.h:18
OIDC Authentication request using OAuth Device Authorization Grant.
Definition OIDCDeviceAuthenticationRequest.h:18
virtual std::unique_ptr< tenduke::oidc::OIDCState > accessTokenRequest()=0
Performs OAuth Device Access Token Request, wrapped inside OIDC.
virtual void cancel()=0
Marks the request canceled.
virtual tenduke::oauth::device::DeviceAuthorizationResponse authenticationRequest()=0
Perform the OAuth Device Authorization Request (wrapping it to OIDC).
Definition OIDCDeviceAuthenticationRequestMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4