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
Is your feature request related to a problem? Please describe.
When attempting to implement OAuth2 based security, with OOTB Vert.x functionalities, I've encountered a need to register custom routing when creating the handler.
Describe the solution you'd like
AuthHandlerFactory should have the possibility to register some custom routing, required for example for an OAuth2 callback.
Describe alternatives you've considered
It is possible to implement it as two different OpenAPI3 based endpoints, but it breaks the isolation between security logic and routing logic (business logic).
The text was updated successfully, but these errors were encountered:
Looks nice, but the catch is that with current implementation of OAuth2 flow in Vert.x I need to specifically call OAuth2AuthHandlerImpl#setupCallback which takes Route as a param. Under the hood it is explicitly registering a handler for retrieving the authentication code and exchanging it for access token:
...
route.handler(ctx -> {
// Handle the callback of the flow
...
});
// the redirect handler has been setup so we can process this// handler has full oauth2bearerOnly = false;
callback = route;
returnthis;
}
The bearerOnly = false is crucial as well, it prevents the inital request from being revoked right away (yep, this field is private 😒 )
Is your feature request related to a problem? Please describe.
When attempting to implement OAuth2 based security, with OOTB Vert.x functionalities, I've encountered a need to register custom routing when creating the handler.
Describe the solution you'd like
AuthHandlerFactory should have the possibility to register some custom routing, required for example for an OAuth2 callback.
Describe alternatives you've considered
It is possible to implement it as two different OpenAPI3 based endpoints, but it breaks the isolation between security logic and routing logic (business logic).
The text was updated successfully, but these errors were encountered: