Knotx / Knotx/knotx-server-http

Add access to Router in AuthHandlerFactory

Open
#42 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

**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).

Contributor guide

Open the contributing guide

Research direction

Start by locating AuthHandlerFactory and the Router integration points in the server project. Review how authentication handlers are created and how routing is currently registered, then verify that an OAuth2 callback can use custom routing without breaking the separation between security and business logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.