Interface IOneComputePlatformClientAuthenticator
Defines the OneCompute Platform client authenticator, which handles different authentication modes.
Namespace: DNVGL.One.Compute.Core.PlatformClient
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IOneComputePlatformClientAuthenticator
Properties
View SourceOcpBaseUrl
Gets the OneCompute REST API URL (base address).
Declaration
string OcpBaseUrl { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceGetAccessTokenAsync()
Gets an access token, according to the different modes of the authenticator.
Declaration
Task<string> GetAccessTokenAsync()
Returns
Type | Description |
---|---|
Task<string> | An access token. |
Remarks
This will be called through a callback function in the "RestClientBase", upon each REST API call.