Skip to content

Commit

Permalink
custom javalin http action adapter to prevent redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
harmbrugge committed Oct 16, 2024
1 parent 06d5398 commit 36e7cd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public OIDCController(MolgenisSessionManager sessionManager, Config securityConf
this.sessionStore = FindBest.sessionStore(null, securityConfig, JEESessionStore.INSTANCE);
}

public Object handleLoginRequest(Context ctx) {
public void handleLoginRequest(Context ctx) {
final JavalinWebContext context = new JavalinWebContext(ctx);
sessionStore.set(context, Pac4jConstants.REQUESTED_URL, ctx.queryParams("redirect"));
final var client =
Expand All @@ -62,7 +62,7 @@ public Object handleLoginRequest(Context ctx) {
} catch (final HttpAction e) {
action = e;
}
return JavalinHttpActionAdapter.INSTANCE.adapt(action, context);
JavalinHttpActionAdapter.INSTANCE.adapt(action, context);
}

public void handleLoginCallback(Context ctx) {
Expand Down

0 comments on commit 36e7cd0

Please sign in to comment.