Skip to content

Commit

Permalink
Update SecureAction.java (#671)
Browse files Browse the repository at this point in the history
Now request has the response headers and cookies related to matchers
  • Loading branch information
rayacode authored Jun 24, 2024
1 parent ed820ff commit 2dc31e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/src/main/java/org/pac4j/play/java/SecureAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ protected CompletionStage<Result> internalCall(final PlayFrameworkParameters par
if (delegate == null) {
return CompletableFuture.completedFuture(new PlayWebContextResultHolder(playWebContext));
} else {
return delegate.call(playWebContext.supplementRequest((Http.Request) playWebContext.getNativeJavaRequest()));
return delegate.call(playWebContext.supplementRequest((Http.Request)
playWebContext.getNativeJavaRequest())).thenApply(result -> playWebContext.supplementResponse(result));

}
}, clients, authorizers, matchers, parameters);
}
Expand Down

0 comments on commit 2dc31e6

Please sign in to comment.