https://github.com/aimenux/basicauthenticationdemo
Adding basic authentication to web api projects
https://github.com/aimenux/basicauthenticationdemo
basic-authentication controller-api minimal-api net80 web-api
Last synced: 11 months ago
JSON representation
Adding basic authentication to web api projects
- Host: GitHub
- URL: https://github.com/aimenux/basicauthenticationdemo
- Owner: aimenux
- License: mit
- Created: 2023-05-22T20:35:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T17:46:15.000Z (over 1 year ago)
- Last Synced: 2025-01-10T00:24:27.120Z (about 1 year ago)
- Topics: basic-authentication, controller-api, minimal-api, net80, web-api
- Language: C#
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/aimenux/BasicAuthenticationDemo/actions/workflows/ci.yml)
# BasicAuthenticationDemo
```
Adding basic authentication to web api projects
```
In this repo, i m using various ways to support basic authentication in web api projects
>
> :one: `Example01` use controller api with basic authentication based on middlewares
>
> :two: `Example02` use minimal api with basic authentication based on middlewares
>
> :three: `Example03` use controller api with basic authentication based on authorisation filters (applied globally)
>
> :four: `Example04` use minimal api with basic authentication based on endpoint filters (applied globally)
>
> :five: `Example05` use controller api with basic authentication based on authorisation filters (applied by route)
>
> :six: `Example06` use minimal api with basic authentication based on endpoint filters (applied by route)
>
> :seven: `Example07` use controller api with basic authentication based on a custom authentication scheme
>
> :eight: `Example08` use minimal api with basic authentication based on a custom authentication scheme
>
**`Tools`** : net 8.0, web api, integration-testing, fluent-assertions, nsubstitute, xunit