|
|
| 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)) |
| |
| 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::OIDCState > | getOIDCState ()=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.
|
| |