Skip to content
Snippets Groups Projects
Commit 26a44120 authored by Lukáš Drábek's avatar Lukáš Drábek
Browse files

Implement JWT Bearer authentication and update API key handling

This commit integrates JWT Bearer authentication into the application, replacing the previous API key authentication setup. The `API.csproj` file now includes the `Microsoft.AspNetCore.Authentication.JwtBearer` package.

The `AuthenticationExtensions.cs` file has been updated to configure JWT authentication with specified audience and authority. The `OpenApiSecuritySchemeTransformer.cs` file has been modified to reflect the new security scheme for JWT Bearer authentication in the OpenAPI documentation.

Additionally, new classes for handling API key and JWT Bearer authentication have been introduced. The `Program.cs` file has been updated to utilize the new transformers for OpenAPI document generation.

The `Directory.Packages.props` file has also been updated to ensure the correct version of the JWT Bearer package is used. These changes enhance the overall security of the application.
parent 4214a760
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment