An open API service indexing awesome lists of open source software.

https://github.com/soenneker/soenneker.utils.test.authhandler

A custom test authentication handler that builds a ClaimsPrincipal from headers or a JWT to simulate authenticated users during integration tests.
https://github.com/soenneker/soenneker.utils.test.authhandler

authentication authhandler authorization csharp dotnet httpclient integration test testauthhandler tests unit util utils

Last synced: 16 days ago
JSON representation

A custom test authentication handler that builds a ClaimsPrincipal from headers or a JWT to simulate authenticated users during integration tests.

Awesome Lists containing this project

README

          

[![](https://img.shields.io/nuget/v/soenneker.utils.test.authhandler.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.test.authhandler/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.test.authhandler/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.utils.test.authhandler/actions/workflows/publish-package.yml)
[![](https://img.shields.io/nuget/dt/soenneker.utils.test.authhandler.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.test.authhandler/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.test.authhandler/codeql.yml?label=CodeQL&style=for-the-badge)](https://github.com/soenneker/soenneker.utils.test.authhandler/actions/workflows/codeql.yml)

# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Utils.Test.AuthHandler
### A custom test authentication handler that builds a ClaimsPrincipal from headers or a JWT to simulate authenticated users during integration tests.

## Installation

```
dotnet add package Soenneker.Utils.Test.AuthHandler
```