10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::test::mocks::OIDCSessionMock Class Reference
Inheritance diagram for tenduke::test::mocks::OIDCSessionMock:
tenduke::oidc::OIDCSession

Public Member Functions

 MOCK_METHOD (void, ensureValidSession,(),(override))
 
 MOCK_METHOD (std::string, getAccessToken,(),(override))
 
 MOCK_METHOD ((std::shared_ptr< const tenduke::oidc::OIDCState >), getOIDCState,(),(override))
 
 MOCK_METHOD (bool, heartbeat,(),(override))
 
 MOCK_METHOD (void, invalidate,(),(override))
 
 MOCK_METHOD (bool, isValid,(),(override))
 
 MOCK_METHOD (void, refresh,(),(override))
 
 MOCK_METHOD (void, reEstablish,(),(override))
 
- Public Member Functions inherited from tenduke::oidc::OIDCSession
virtual void ensureValidSession ()=0
 Checks that the OIDC session is valid, but if it is NOT, either refreshes the access token or authenticates the user.
 
virtual std::string getAccessToken ()=0
 Returns access token of the session.
 
virtual std::shared_ptr< const tenduke::oidc::OIDCStategetOIDCState ()=0
 Returns the current OIDC-state for inspection.
 
virtual bool heartbeat ()=0
 Executes a heartbeat with the backend, checking that the current access token really works.
 
virtual void invalidate ()=0
 Invalidates the session.
 
virtual bool isValid ()=0
 Checks that local session is valid.
 
virtual void refresh ()=0
 Forces refresh of the session.
 
virtual void reEstablish ()=0
 Re-establishes the session: Tries first to refresh the state, if it fails, re-authenticates the user.
 

Static Public Member Functions

static std::shared_ptr< OIDCSessionMockcreateShared ()
 

The documentation for this class was generated from the following file: