https://github.com/aimenux/apikeyauthenticationdemo
Adding api key authentication to web api projects
https://github.com/aimenux/apikeyauthenticationdemo
api-key-authentication controller-api minimal-api net80 webapi
Last synced: 7 days ago
JSON representation
Adding api key authentication to web api projects
- Host: GitHub
- URL: https://github.com/aimenux/apikeyauthenticationdemo
- Owner: aimenux
- License: mit
- Created: 2023-05-09T13:20:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T22:58:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T00:24:15.455Z (over 1 year ago)
- Topics: api-key-authentication, controller-api, minimal-api, net80, webapi
- Language: C#
- Homepage:
- Size: 81.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/ApiKeyAuthenticationDemo/actions/workflows/ci.yml)
# ApiKeyAuthenticationDemo
```
Adding api key authentication to web api projects
```
In this repo, i m using various ways to support api key authentication in web api projects
>
> :one: `Example01` use controller api with api key authentication based on middlewares
>
> :two: `Example02` use minimal api with api key authentication based on middlewares
>
> :three: `Example03` use controller api with api key authentication based on authorisation filters (applied globally)
>
> :four: `Example04` use minimal api with api key authentication based on endpoint filters (applied globally)
>
> :five: `Example05` use controller api with api key authentication based on authorisation filters (applied by route)
>
> :six: `Example06` use minimal api with api key authentication based on endpoint filters (applied by route)
>
> :seven: `Example07` use controller api with api key authentication based on a custom authentication scheme
>
> :eight: `Example08` use minimal api with api key authentication based on a custom authentication scheme
>
**`Tools`** : net 8.0, web api, integration-testing, fluent-assertions, nsubstitute, xunit