Skip to content

Commit

Permalink
Also configure authentication to security schemes can be inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Oct 25, 2024
1 parent ed273d9 commit ce3c686
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Backend/PubNet.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ void HandleApiDescriptionToolInvocation()
{
var builder = WebApplication.CreateBuilder(args);

ConfigureAuthentication(builder);

ConfigureControllers(builder);

ConfigureSwagger(builder);

_ = builder.Build();
Expand Down
7 changes: 7 additions & 0 deletions Backend/PubNet.API/PubNet.API.json
Original file line number Diff line number Diff line change
Expand Up @@ -3111,6 +3111,13 @@
},
"additionalProperties": false
}
},
"securitySchemes": {
"Bearer": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "Json Web Token"
}
}
},
"security": [
Expand Down

0 comments on commit ce3c686

Please sign in to comment.