Show / Hide Table of Contents

Class BasicAuthenticationCredentials

Basic Auth credentials for use with a REST Service Client.

Inheritance
object
ServiceClientCredentials
BasicAuthenticationCredentials
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: k8s.Authentication
Assembly: KubernetesClient.dll
Syntax
public class BasicAuthenticationCredentials : ServiceClientCredentials

Constructors

BasicAuthenticationCredentials()

Declaration
public BasicAuthenticationCredentials()

Properties

Password

Basic auth password.

Declaration
public string Password { get; set; }
Property Value
Type Description
string

UserName

Basic auth UserName.

Declaration
public string UserName { get; set; }
Property Value
Type Description
string

Methods

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

Add the Basic Authentication Header to each outgoing request

Declaration
public override Task ProcessHttpRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type Name Description
HttpRequestMessage request

The outgoing request

CancellationToken cancellationToken

A token to cancel the operation

Returns
Type Description
Task

void

Overrides
ServiceClientCredentials.ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)
In this article
Back to top Generated by DocFX