Authentication Type
A DataHub credential, reduced to the single HTTP header it contributes to a request, or anonymous access without an authentication header. Construct one via the static factory methods rather than directly. See the .
Instance members
| Instance member |
Description
|
Full Usage:
this.Header
Returns: string
|
The HTTP header name carrying the credential, or an empty string for anonymous access.
|
Full Usage:
this.Value
Returns: string
|
The HTTP header value carrying the credential, or an empty string for anonymous access.
|
Static members
| Static member |
Description
|
Full Usage:
Authentication.Anonymous()
Returns: Authentication
An anonymous credential with empty Header and Value properties.
|
Accesses public resources without sending an authentication header.
|
Full Usage:
Authentication.JobToken(token)
Parameters:
string
-
The CI/CD job token.
Returns: Authentication
|
Authenticates with a CI/CD job token via the
|
Full Usage:
Authentication.OAuthToken(token)
Parameters:
string
-
The OAuth 2.0 access token.
Returns: Authentication
|
Authenticates with an OAuth 2.0 token via the
|
Full Usage:
Authentication.PersonalAccessToken(token)
Parameters:
string
-
The personal access token.
Returns: Authentication
|
Authenticates with a Personal Access Token via the
|
DataHubClient