10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
OIDCSession.h
1
#ifndef TENDUKE_OIDC_OIDCSESSION_H
2
#define TENDUKE_OIDC_OIDCSESSION_H
3
4
#include "../OIDCState.h"
5
6
#include <memory>
7
#include <string>
8
9
namespace
tenduke
{
namespace
oidc
{
10
11
22
class
OIDCSession
23
{
24
public
:
25
virtual
~OIDCSession
() =
default
;
26
37
virtual
void
abortLogin
() = 0;
38
60
virtual
void
ensureValidSession
() = 0;
61
68
virtual
std::string
getAccessToken
() = 0;
69
77
virtual
std::shared_ptr<const tenduke::oidc::OIDCState>
getOIDCState
() = 0;
78
94
virtual
bool
heartbeat
() = 0;
95
100
virtual
void
invalidate
() = 0;
101
115
virtual
bool
isValid
() = 0;
116
126
virtual
void
refresh
() = 0;
127
134
virtual
void
reEstablish
() = 0;
135
};
136
137
138
}}
139
140
#endif
//TENDUKE_OIDC_OIDCSESSION_H
tenduke::oidc::OIDCSession
Stateful service to manage OIDC-session.
Definition
OIDCSession.h:23
tenduke::oidc::OIDCSession::ensureValidSession
virtual void ensureValidSession()=0
Checks that the OIDC session is valid, but if it is NOT, either refreshes the access token or authent...
tenduke::oidc::OIDCSession::heartbeat
virtual bool heartbeat()=0
Executes a heartbeat with the backend, checking that the current access token really works.
tenduke::oidc::OIDCSession::getOIDCState
virtual std::shared_ptr< const tenduke::oidc::OIDCState > getOIDCState()=0
Returns the current OIDC-state for inspection.
tenduke::oidc::OIDCSession::abortLogin
virtual void abortLogin()=0
Aborts an ongoing login flow.
tenduke::oidc::OIDCSession::reEstablish
virtual void reEstablish()=0
Re-establishes the session: Tries first to refresh the state, if it fails, re-authenticates the user.
tenduke::oidc::OIDCSession::invalidate
virtual void invalidate()=0
Invalidates the session.
tenduke::oidc::OIDCSession::isValid
virtual bool isValid()=0
Checks that local session is valid.
tenduke::oidc::OIDCSession::getAccessToken
virtual std::string getAccessToken()=0
Returns access token of the session.
tenduke::oidc::OIDCSession::refresh
virtual void refresh()=0
Forces refresh of the session.
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:18
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oidc
session
OIDCSession.h
Generated by
1.17.0