60 public override string ToString() => $
"{AuthorizationMethod} {access_token}";
An AccessToken storing Bearer authentication information for requests made to the server,...
string AuthorizationMethod
The Authorization Method included in the Authorization header.
string access_token
The AccessToken identifier.
override string ToString()
Returns the representation of this access token that could be placed in an "Authorization" header.
bool IsExpired()
Checks if the token is expired.
BearerAuthenticationToken(string token, DateTime expirationTime)
Construct a new BearerAuthenticationToken with a token and expiration.
BearerAuthenticationToken()
Construct a new unauthorized BearerAuthenticationToken.
DateTime ExpirationTime
Expiration time of the token.
AccessTokenStatus status
The AccessToken's current AccessTokenStatus (unauthorized / valid).
An AccessToken storing authentication information for requests made to the server.
AccessTokenStatus
An AccessToken's status (unauthorized / valid).