1#ifndef TENDUKE_OIDC_OIDCSESSION_H
2#define TENDUKE_OIDC_OIDCSESSION_H
4#include "../OIDCState.h"
9namespace tenduke {
namespace oidc {
65 virtual std::shared_ptr<const tenduke::oidc::OIDCState>
getOIDCState() = 0;
Stateful service to manage OIDC-session.
Definition OIDCSession.h:23
virtual void ensureValidSession()=0
Checks that the OIDC session is valid, but if it is NOT, either refreshes the access token or authent...
virtual bool heartbeat()=0
Executes a heartbeat with the backend, checking that the current access token really works.
virtual std::shared_ptr< const tenduke::oidc::OIDCState > getOIDCState()=0
Returns the current OIDC-state for inspection.
virtual void reEstablish()=0
Re-establishes the session: Tries first to refresh the state, if it fails, re-authenticates the user.
virtual void invalidate()=0
Invalidates the session.
virtual bool isValid()=0
Checks that local session is valid.
virtual std::string getAccessToken()=0
Returns access token of the session.
virtual void refresh()=0
Forces refresh of the session.
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4