More...
|
bool | HasExpired (DateTime offset) |
| Check the session has expired against the offset time.- Parameters
-
offset | The datetime to compare against this session. |
- Returns
- If the session has expired.
|
|
bool | HasRefreshExpired (DateTime offset) |
| Check if the refresh token has expired against the offset time.- Parameters
-
offset | The datetime to compare against this refresh token. |
- Returns
- If refresh token has expired.
|
|
override string | ToString () |
|
|
static ISession | Restore (string authToken, string refreshToken=null) |
| Restore a session from the auth token.
|
|
|
static readonly DateTime | Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) |
|
|
string | AuthToken [get] |
| The authorization token used to construct this session.
|
|
long | ExpireTime [get] |
| The UNIX timestamp when this session will expire.
|
|
bool | IsExpired [get] |
| If the session has expired.
|
|
bool | IsRefreshExpired [get] |
| If the refresh token has expired.
|
|
long | RefreshExpireTime [get] |
| The UNIX timestamp when the refresh token will expire.
|
|
string | RefreshToken [get] |
| Refresh token that can be used for session token renewal.
|
|
string | IdentityId [get] |
| The ID of the user who owns this session.
|
|
◆ HasExpired()
bool Satori.Session.HasExpired |
( |
DateTime |
offset | ) |
|
|
inline |
Check the session has expired against the offset time.
- Parameters
-
offset | The datetime to compare against this session. |
- Returns
- If the session has expired.
Implements Satori.ISession.
◆ HasRefreshExpired()
bool Satori.Session.HasRefreshExpired |
( |
DateTime |
offset | ) |
|
|
inline |
Check if the refresh token has expired against the offset time.
- Parameters
-
offset | The datetime to compare against this refresh token. |
- Returns
- If refresh token has expired.
Implements Satori.ISession.
◆ Restore()
static ISession Satori.Session.Restore |
( |
string |
authToken, |
|
|
string |
refreshToken = null |
|
) |
| |
|
inlinestatic |
Restore a session from the auth token.
A null
or empty authentication token will return null.
- Parameters
-
authToken | The authorization token to restore as a session. |
refreshToken | The refresh token for the session. |
- Returns
- A session.
◆ ToString()
override string Satori.Session.ToString |
( |
| ) |
|
|
inline |
◆ Epoch
readonly DateTime Satori.Session.Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) |
|
static |
◆ AuthToken
string Satori.Session.AuthToken |
|
get |
The authorization token used to construct this session.
Implements Satori.ISession.
◆ ExpireTime
long Satori.Session.ExpireTime |
|
get |
The UNIX timestamp when this session will expire.
Implements Satori.ISession.
◆ IdentityId
string Satori.Session.IdentityId |
|
get |
◆ IsExpired
bool Satori.Session.IsExpired |
|
get |
◆ IsRefreshExpired
bool Satori.Session.IsRefreshExpired |
|
get |
◆ RefreshExpireTime
long Satori.Session.RefreshExpireTime |
|
get |
The UNIX timestamp when the refresh token will expire.
Implements Satori.ISession.
◆ RefreshToken
string Satori.Session.RefreshToken |
|
get |
Refresh token that can be used for session token renewal.
Implements Satori.ISession.
The documentation for this class was generated from the following file: