vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

Support AuthorizationHandlers on OpenAPI Operations

Open ikstewa opened this issue 3 years ago • 4 comments

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

ikstewa avatar Oct 18 '22 22:10 ikstewa

@pmlopes Any suggestions on how I can help move this forward?

ikstewa avatar Jan 27 '23 19:01 ikstewa

waiting for this feature

olenagerasimova avatar Apr 19 '23 10:04 olenagerasimova

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.

ikstewa avatar Sep 12 '23 18:09 ikstewa

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

pk-work avatar May 31 '24 19:05 pk-work