Skip to content

AuthenticationHeaderBinder Class

A model binder for binding authentication header values.

C#
public class AuthenticationHeaderBinder : Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase

Inheritance System.ObjectModelBinderBase → AuthenticationHeaderBinder

Remarks

This binder is specifically designed to extract and bind authentication header values from HTTP requests. It extends the functionality of ModelBinderBase to handle authentication headers.

Methods

AuthenticationHeaderBinder.BindModelAsync(ModelBindingContext) Method

Asynchronously binds an authentication header model.

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

Parameters

bindingContext Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext

The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext for the binding operation.

Implements BindModelAsync(ModelBindingContext)

Returns

System.Threading.Tasks.Task

Remarks

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