|
10Duke Enterprise C++ SDK
|
#include <OIDCSessionEventListener.h>
Event listener for OIDC session events.
NOTE: the event listener code is called synchronously in the same thread the OIDCSession is executing, so keep this in mind if you need to manage UI.
NOTE: We recommend that your event listeners inherit from tenduke::oidc::DefaultOIDCSessionEventListener because it is possible that new methods are added to this interface.
Public Member Functions | |
| virtual void | loginStarting ()=0 |
| Called when OIDCSession starts login. | |
| virtual void | loginComplete (const ::tenduke::oidc::OIDCState &state)=0 |
| Called when OIDC login is complete. | |
| virtual void | refreshComplete (const ::tenduke::oidc::OIDCState &state)=0 |
| Called when OIDC session refresh is complete. | |
|
pure virtual |
Called when OIDC login is complete.
To keep the user logged in across application restarts, store the state here (and in refreshComplete()). The state is a credential, see tenduke::oidc::stateToJson() for how to store it.
| state | the new state. |
Implemented in DefaultOIDCSessionEventListener, and tenduke::oidc::DefaultOIDCSessionEventListener.
|
pure virtual |
Called when OIDCSession starts login.
Implemented in DefaultOIDCSessionEventListener, and tenduke::oidc::DefaultOIDCSessionEventListener.
|
pure virtual |
Called when OIDC session refresh is complete.
The refresh may have replaced the refresh token, so store the new state if you store the state, see loginComplete().
| state | the new state. |
Implemented in DefaultOIDCSessionEventListener, and tenduke::oidc::DefaultOIDCSessionEventListener.