This package implements logic for exception handling occurred during any api request through a specific middleware that returns http status code 400 (for business exceptions) or 500 (for internal errors).
This package implements logic for jwt generation including a set of claims widely used for user management. It also handles user data deserialization through a set of claims obtained from HttpContext making data available through dependency injection.
Serialization of Exceptions project contains common classes for DTO purposes during exceptions serialization and deserialization in an exception handling. In case of a business error, the DTO BadRequestError reflect CoreException properties that can be displayed externally; in case of a system...
Exceptions project contains base exception and typed exception that you can use in order to throw errors known to the domain. In a webapi, a handler will capture these errors and generate a formatted output.
This package configures networking for http requests. It offers a HttpClientFactory that create HttpClients with AccessToken added as an Authorization Bearer header obtained from an UserPrincipal retrieved from HttpContext.