You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swagger-ui clicks the Authorize button, and the pop-up panel has no input box for entering credentials.
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();
}());
The text was updated successfully, but these errors were encountered:
Swagger-ui clicks the Authorize button, and the pop-up panel has no input box for entering credentials.
Below is the component registration code.
The text was updated successfully, but these errors were encountered: