|
Kanda Foundation 0.2.0
|
A wrapper on CloudCredentials which allows for automatically or manually refreshing the credentials using its refresh token. More...
Inheritance diagram for IRefreshableCloudCredentials:Public Member Functions | |
| CloudCredentials | Get () |
| Gets the current cloud credentials. | |
| Task | Refresh (CancellationToken cancellationToken) |
| Refreshes credentials using the OIDC token endpoint. | |
| Task | RefreshIfExpiring (CancellationToken cancellationToken) |
| Refreshes credentials using the OIDC token endpoint if the token is expired or will soon. | |
A wrapper on CloudCredentials which allows for automatically or manually refreshing the credentials using its refresh token.
| CloudCredentials Get | ( | ) |
Gets the current cloud credentials.
Implemented in RefreshableCloudCredentials.
| Task Refresh | ( | CancellationToken | cancellationToken | ) |
Refreshes credentials using the OIDC token endpoint.
| ArgumentException | Thrown if the current credentials don't have a valid refresh token. |
| InvalidOperationException | Thrown if the token refresh request failed. |
| JsonException | Thrown if the token refresh request content could not be deserialized. |
Implemented in RefreshableCloudCredentials.
| Task RefreshIfExpiring | ( | CancellationToken | cancellationToken | ) |
Refreshes credentials using the OIDC token endpoint if the token is expired or will soon.
| ArgumentException | Thrown if the current credentials don't have a valid refresh token. |
| InvalidOperationException | Thrown if the token refresh request failed. |
| JsonException | Thrown if the token refresh request content could not be deserialized. |
Implemented in RefreshableCloudCredentials.