🚧 Fix Callback

This commit is contained in:
Andreas Dinauer 2026-03-15 10:40:18 +01:00
parent 20d2b50cf0
commit c93326b38f
2 changed files with 11 additions and 6 deletions

View File

@ -31,17 +31,23 @@ public class ProxyResource
@Inject
RouteService routeService;
@Inject
CallbackService callbackService;
@Inject
SessionRepository sessionRepository;
@Inject
ForwardService forwardService;
@Inject
CallbackService callbackService;
@Route(path = "/callback", order = 0)
public void callback(@Context RoutingContext context)
{
callbackService.get(context.response(), context.request());
}
@Route(path = "/*", order = 1)
public void hello(@Context RoutingContext context)
public void proxy(@Context RoutingContext context)
{
List<String> requestSegments = List.of(context.request().path().split("/"));

View File

@ -24,8 +24,7 @@ public class CallbackService
@ConfigProperty(name = "oidc.proxy.client.redirect")
String redirectURI;
@Route(path = "/callback", order = 0)
public void get(@Context HttpServerResponse response, @Context HttpServerRequest request)
public void get(HttpServerResponse response, HttpServerRequest request)
{
String code = request.params().get("code");
TokenResponse token = client.exchangeAuthorizationCode(code);