"Unknown security definition type" when using OpenApiSecuritySchemeType.Bearer schema
See original GitHub issueHi team,
So far setting up OpenApiSecurity as
[OpenApiSecurity("jwt"
, SecuritySchemeType.Http
, Scheme = OpenApiSecuritySchemeType.Bearer
, BearerFormat = "JWT"
, In = OpenApiSecurityLocationType.Header)]
has only produced “Unknown security definition type” on SwaggerUI Authorize modal.
Is anything else needed to make it work?
Currently our workaround is abuse of apikey,
Going through documentation, we didn’t notice anything else that might be missing from configuration and according to it, bearer schema should be supported.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using JWT bearer token configuration results in "Unknown ...
NET 6 Functions isolated V4 With the following configuration of OpenApi on ... we always get the message "Unknown security definition type"
Read more >Jwt authentication implement in swagger api?
Hi am using Swager APi with nodejs. I am new to this technology. i was facing issue in my code. Tried to implement...
Read more >Unable to import openapi 3 spec with bearer auth
I get the following error: Your API was not imported due to errors in the Swagger file. Unsupported security definition type 'http' for...
Read more >Securing Azure Functions Endpoints via OpenAPI Auth
In this post, I'm going to discuss many options for securing Azure Functions endpoints through API key, bearer token, ...
Read more >Authentication
The securityDefinitions section is used to define all security schemes (authentication types) supported by the API. It is a name->definition map that maps ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You only need this.
If you implement this interface,
IOpenApiConfigurationOptions
, you’ll be able to set V3 spec as a default behaviour.samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/Configurations/OpenApiConfigurationOptions.cs