- authorizeRequest
void authorizeRequest(HTTPClientRequest req)
Authorize an HTTP request using this session's token.
- canRefresh
bool canRefresh()
Indicates whether this session can refresh its access token.
- expired
bool expired()
- expires
SysTime expires()
Expiration time of this session's access token.
- handleAccessTokenResponse
void handleAccessTokenResponse(Json atr, SysTime timestamp, bool isReload)
Handles the response to an access token request and sets the properties
of this session accordingly.
- hasScope
bool hasScope(string someScope)
Indicates whether this session has authorization for the given scope.
- refresh
void refresh()
Refresh the access token of this session.
- save
void save(Session httpSession)
Save this session's data into an HTTP session.
- scopeString
string scopeString()
Undocumented in source. Be warned that the author may not have intended to support it.
- scopes
string[] scopes()
All scopes this session has authorization for.
- sign
void sign()
Undocumented in source. Be warned that the author may not have intended to support it.
- signature
string signature()
Unique signature of this session.
- timestamp
SysTime timestamp()
Timestamp of this session
- token
string token()
Undocumented in source. Be warned that the author may not have intended to support it.
- tokenData
const(Json) tokenData()
Json object from the access token response
- tokenType
string tokenType()
Undocumented in source. Be warned that the author may not have intended to support it.
- verify
bool verify(Session httpSession)
Verify if this is the session referenced by the given HTTP session.
Holds an access token and optionally a refresh token.