#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Binders](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders 'Abblix\.Oidc\.Server\.Mvc\.Binders')

## AuthenticationHeaderBinder Class

A model binder for binding authentication header values\.

```csharp
public class AuthenticationHeaderBinder : Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [ModelBinderBase](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase 'Abblix\.Oidc\.Server\.Mvc\.Binders\.ModelBinderBase') → AuthenticationHeaderBinder

### Remarks
This binder is specifically designed to extract and bind authentication header values from HTTP requests\.
It extends the functionality of [ModelBinderBase](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase 'Abblix\.Oidc\.Server\.Mvc\.Binders\.ModelBinderBase') to handle authentication headers\.
### Methods

## AuthenticationHeaderBinder\.BindModelAsync\(ModelBindingContext\) Method {#Abblix.Oidc.Server.Mvc.Binders.AuthenticationHeaderBinder.BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)}

Asynchronously binds an authentication header model\.

```csharp
public override System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext);
```
#### Parameters

###### `bindingContext` [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.modelbindingcontext 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext') {#Abblix.Oidc.Server.Mvc.Binders.AuthenticationHeaderBinder.BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext).bindingContext}

The [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.modelbindingcontext 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext') for the binding operation\.

Implements [BindModelAsync\(ModelBindingContext\)](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.imodelbinder.bindmodelasync#microsoft-aspnetcore-mvc-modelbinding-imodelbinder-bindmodelasync(microsoft-aspnetcore-mvc-modelbinding-modelbindingcontext) 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IModelBinder\.BindModelAsync\(Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext\)')

#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')

### Remarks
The method extracts authentication header data from the request and tries to bind it to the model\.
