|
OpenTAP 9.31
API Reference
|
Represents a set of Oauth2/OpenID Connect tokens (access and possibly refresh token) that grants access to a given domain. More...
Public Member Functions | |
| TokenInfo () | |
| Constructor used by serializer, please use constructor with arguments from user code. | |
| TokenInfo (string access_token, string refresh_token, string domain) | |
| Default constructor from user code More... | |
Static Public Member Functions | |
| static TokenInfo | FromResponse (string response, string domain) |
| Creates a TokenInfo object based on the given OAuth response (json format). | |
Properties | |
| string | AccessToken [getset] |
| Raw access token string. This value can be used as a Bearer token. The HttpClient returned from AuthenticationSettings.GetClient will automatically do this for requests that go to domains that match Domain. | |
| string | RefreshToken [getset] |
| Raw refresh token string. May be null if no refresh token is available. | |
| string | Domain [getset] |
| The hostname or IP address this token is intended for. Used by the HttpClient returned from AuthenticationSettings.GetClient to determine which TokenInfo in the AuthenticationSettings.Tokens list to use for a given request. | |
| IReadOnlyDictionary< string, string > | Claims [get] |
| Claims contained in the AccessToken. | |
| DateTime | Expiration [get] |
| Expiration date of the AccessToken. | |
Represents a set of Oauth2/OpenID Connect tokens (access and possibly refresh token) that grants access to a given domain.
|
inline |
Default constructor from user code
| access_token | The raw token string for the access token |
| refresh_token | Access, Refresh or ID type |
| domain | Domain name for which this token is valid |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:37