Skip to content

Commit

Permalink
Update SecureAction.java
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 23, 2024
1 parent b95813e commit aaeca48
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 aaeca48

Please sign in to comment.