https://github.com/angelodotnet/minimalapi.authjwtidentity
Minimal APIs protected by centralized Identity
https://github.com/angelodotnet/minimalapi.authjwtidentity
Last synced: 10 months ago
JSON representation
Minimal APIs protected by centralized Identity
- Host: GitHub
- URL: https://github.com/angelodotnet/minimalapi.authjwtidentity
- Owner: AngeloDotNet
- Created: 2024-11-30T16:02:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T11:37:35.000Z (about 1 year ago)
- Last Synced: 2025-08-25T10:32:12.236Z (10 months ago)
- Language: C#
- Homepage:
- Size: 41 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal APIs protected by centralized Identity
Example showing how to configure authentication and authorization using .NET Identity and JWT token shared between two microservices (2 web api).
Being an example it is a minimal configuration, which excludes the possibility of token refresh, role management, claims, etc.. but it is still possible by adding the missing configuration.
At the moment the configuration of the JWT token parameters have been replicated in the appsettings.json file of the 3 API projects.
It is possible to implement complete JWT token management by adding users, roles, permissions and much more dynamically. To do this, you need to integrate this [library](https://github.com/AngeloDotNet/Packages.MinimalApi.Identity) into your project.
Comments and/or suggestions are always welcome.