Interface IRefreshableOnNotAuthenticatedProvider<T>
For authentication providers with refreshable authentication data (e.g. those which wrap a security token received from a remote service), this interface flags that when a caller receives a NotAuthenticated error (HTTP 401) that they can refresh the authentication data and retry their request. Consistent HTTP 401s would indicate that there is potentially an issue outside the issued token, so only making a single retry is suggested.
Namespace: Oci.Common.Auth
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public interface IRefreshableOnNotAuthenticatedProvider<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Refresh()
Refreshes the authentication data used by the provider.
Declaration
T Refresh()
Returns
Type | Description |
---|---|
T | The refreshed authentication data. |