Show / Hide Table of Contents

Class OneComputePlatformClientAuthenticatorBase

Defines the Platform client authenticator base.

Inheritance
System.Object
OneComputePlatformClientAuthenticatorBase
OneComputePlatformClientAuthenticatorNative
OneComputePlatformClientAuthenticatorNativeAutoRefresh
Namespace: DNVGL.One.Compute.Platform.Client.Extensions
Assembly: DNVGL.One.Compute.Platform.Client.Extensions.dll
Syntax
public abstract class OneComputePlatformClientAuthenticatorBase : IOneComputePlatformClientAuthenticator

Constructors

View Source

OneComputePlatformClientAuthenticatorBase(String)

Initializes a new instance of the OneComputePlatformClientAuthenticatorBase class.

Declaration
protected OneComputePlatformClientAuthenticatorBase(string ocpBaseUrl)
Parameters
Type Name Description
System.String ocpBaseUrl

The OneCompute REST API URL (base address).

Properties

View Source

EnableAuthenticationLogging

Gets or sets a value indicating whether logging should be enabled or not, for the authentication process (the default is false).

Declaration
public bool EnableAuthenticationLogging { get; set; }
Property Value
Type Description
System.Boolean
View Source

OcpBaseUrl

Declaration
public string OcpBaseUrl { get; }
Property Value
Type Description
System.String

Methods

View Source

GetAccessTokenAsync()

Declaration
public abstract Task<string> GetAccessTokenAsync()
Returns
Type Description
Task<System.String>
View Source

Log(String)

Logs an error message.

Declaration
protected void Log(string message)
Parameters
Type Name Description
System.String message

The error message to log.

View Source

LogAndThrowAuthenticationFailure(String)

Logs an error message and throws an exception indicating an authentication failure.

Declaration
protected void LogAndThrowAuthenticationFailure(string message)
Parameters
Type Name Description
System.String message

The error message to log.

  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.