# ConfluenceDelegateCredentialSource

Delegates authentication to a caller-owned token or signing workflow.

Class 

`OfficeIMO.Confluence`

**Namespace**

`OfficeIMO.Confluence`

**Assembly**

`OfficeIMO.Confluence`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ConfluenceCredentials.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceCredentials.cs#L55)

**Implements**

`IConfluenceCredentialSource`

**Modifiers**

sealed

Delegates authentication to a caller-owned token or signing workflow.

## Inheritance

- object
- ConfluenceDelegateCredentialSource

Filter members 

Show inherited

## Constructors

`public ConfluenceDelegateCredentialSource(Func<HttpRequestMessage, CancellationToken, Task> apply)` [#](#constructor-ctor-func-system-net-http-httprequestmessage-system-threading-cancellationtoken-system-threading-tasks-task)

[ConfluenceCredentials.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceCredentials.cs#L55)

Creates a credential source that invokes apply for each outgoing request.

Parameters

**apply System.Func<System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken, System.Threading.Tasks.Task> required**

## Methods

`public Task ApplyAsync(HttpRequestMessage request, CancellationToken cancellationToken = default)` [#](#method-applyasync-net-http-httprequestmessage-threading-cancellationtoken)

[ConfluenceCredentials.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceCredentials.cs#L59)

Invokes the caller-supplied credential callback for this request.

Parameters

**request System.Net.Http.HttpRequestMessage required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:F89D1894082543C5EE937BF896A4C43C30335B37F0B40A3D762F3E8CCCD4EDCE -->
