Skip to content
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

swagger-ui authorize bug #75

Open
Naamanly opened this issue Dec 5, 2022 · 1 comment
Open

swagger-ui authorize bug #75

Naamanly opened this issue Dec 5, 2022 · 1 comment

Comments

@Naamanly
Copy link

Naamanly commented Dec 5, 2022

Swagger-ui clicks the Authorize button, and the pop-up panel has no input box for entering credentials.

image
Below is the component registration code.

OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::swagger::DocumentInfo>, swaggerDocumentInfo)([] {
		auto ss = oatpp::swagger::SecurityScheme::createShared();
		ss->description = "Default HTTP Bearer Authorization";
		ss->name = "Authorization";
		ss->in = "header";
		ss->type = "http";
		ss->scheme = "Bearer ";
		ss->bearerFormat = "JWT";
		oatpp::swagger::DocumentInfo::Builder builder;
		builder
			.setTitle(" API interface service")
			.setDescription("Provide a set of API documents for describing the front-end and back-end interactions of the project")
			.setVersion("1.0.0")
			.setContactName("example")
			.setLicenseName("Apache License, Version 2.0")
			.setLicenseUrl("https://www.apache.org/licenses/LICENSE-2.0")
			.addSecurityScheme("bearer_auth", ss);
		return builder.build();
		}());
@Naamanly Naamanly changed the title swagger-ui swagger-ui authorize bug Dec 5, 2022
@adityahagawane
Copy link

Did you solve this issue i get same issue for authorization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants