vertx-web
vertx-web copied to clipboard
Support AuthorizationHandlers on OpenAPI Operations
When attempting to register an AuthorizationHandler on an Operation within the OpenAPI3RouterBuilder the resultant router will fail to build because the AuthZ handler is registered after the generated validation handler.
Adding the ability to register AuthorizationHandlers on an Operation. All handlers added using the new authorizationHandler method will be registered after the security handlers but before the validation and user handlers.
Motivation:
https://github.com/vert-x3/vertx-web/issues/2191
Conformance:
Your commits should be signed and you should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines
@pmlopes Any suggestions on how I can help move this forward?
waiting for this feature
Linked issues show it fixed in https://github.com/vert-x3/vertx-web/pull/2405 which is part of vertx 5.x I have not tested with vertx 5 yet.
Hi,
this is a PR related to a not longer maintained component. Do you know that there is a complete rebuild of Vert.x OpenAPI Router [1]? In Vert.x 5 this router has also support for AuthorizationHandlers [2].
Maybe this solves your problem. Is this PR still valid? If yes, please rebase this PR as there are conflicts.
[1] https://vertx.io/docs/vertx-web-openapi-router/java/ [2] https://vertx.io/vertx5/docs/vertx-web-openapi-router/java/#_define_security_handlers