-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth section is missing after latest update #2121
Comments
Hi @Grillpfanne. Thanks for your issue. You can restore old behavior using In your case it looks like this: {
"openapi": "3.0.2",
"info":
{ "title": "API", "description": "This is my API. \n # Authentication \n<SecurityDefinitions />", "version": "1.0" },
"components":
{
"securitySchemes":
{
"ApiKeyAuth":
{
"type": "apiKey",
"in": "header",
"name": "X-Authorization",
"description": "This should be shown",
},
},
},
"security": [{ "ApiKeyAuth": [] }],
} Also, don't forget about |
Hi Alex, Just to document it, the description should be without whitespace between newline and text, otherwise it isn't correctly recognized. |
@Grillpfanne Glad to help you. |
Hi @AlexVarchuk, |
@Grillpfanne you have any idea on this? |
Hi, @rajendra-kumar-kandpal. You should pass it like options to |
thanks for getting back @AlexVarchuk I have been using Redoc through redoc cli(0.13.21), I see example of redoc cli command that does the build with option parameter like as -
but if you see here this option parameter here configures only theme property what if I want to configure multiple things like for example theme and say can you let me know please Thanks! |
@AlexVarchuk any idea on this?? |
Hi, @rajendra-kumar-kandpal . Sorry for the delay. |
no worries, thanks for the revert, that will help, thanks for the info. |
Describe the bug
Auth section is missing. There is a PR removing this functionality: #2022
The PR doesn't give information about why this was removed, and it still shows screenshots with an auth section present.
It seems that the auth section in the screenshots is just a description text.
I think the option to have the auth section auto-generated based on configured securitySchemes is a good feature.
For me, this looks like a bug, because it essentially removes needed information, without having the option to add this data back.
Expected behavior
There is an option to display the auth section based on the securitySchemes.
Minimal reproducible OpenAPI snippet(if possible)
{ "openapi": "3.0.2", "info": { "title": "API", "description": "This is my API.", "version": "1.0" }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-Authorization", "description": "This should be shown" } } }, "security": [ { "ApiKeyAuth": [] } ] }
Additional context
Sadly, there is no "why" given on the PR, so it is hard to follow this change.
The text was updated successfully, but these errors were encountered: