Skip to content

Minimal API using a passport for authorization.

License

Notifications You must be signed in to change notification settings

Hlyrnir/Passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository can be used to add authorization to Minimal API endpoints.

  • PassportVisa: For every endpoint you can specify a mandatory visa. This visa has to be issued to a passport in order to authorize any request.
  • Passport: A passport has to be enabled and valid to generate a authentication token.
  • PassportHolder: Every passport is issued to a specific holder.
  • PassportToken: Credentials at a specific provider will generate a token. This token is needed for generating a authentication token.

For realisation following concepts has been used.

  • Clean architecture
  • Domain driven design
  • Message pipeline (Request -> Authorization -> Validation -> Handler -> Result -> Response) using Mediator
  • ORM using Dapper

Releases

No releases published

Packages

No packages published

Languages