We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to protect with HTTP Basic authentication the swagger URLs themselves. I tried the following:
oatpp::base::Environment::init(); AppComponent components; OATPP_COMPONENT(const std::shared_ptr<oatpp::web::server::HttpRouter>, router); auto misc_controller = router->addController(std::make_shared<MiscController>()); oatpp::web::server::api::Endpoints docEndpoints{}; docEndpoints.append(misc_controller->getEndpoints()); auto swagger_controller = oatpp::swagger::Controller::createShared(docEndpoints); swagger_controller->setDefaultAuthorizationHandler( std::make_shared<MyBasicAuthorizationHandler>()); router->addController(swagger_controller);
I can probably implement this with a request interceptor, but it's not ideal because I have to manually keep track of the swagger paths.
Is there a way to do this by using my custom basic authorization handler?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to protect with HTTP Basic authentication the swagger URLs themselves. I tried the following:
I can probably implement this with a request interceptor, but it's not ideal because I have to manually keep track of the swagger paths.
Is there a way to do this by using my custom basic authorization handler?
The text was updated successfully, but these errors were encountered: