Skip to content

Commit

Permalink
Bruk HttpServletRequest getRequestURL, ikke uri (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen authored Sep 29, 2022
1 parent 03dc589 commit 8dfbc87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Response getLogin(@QueryParam("code") String authorizationCode, @QueryPar

private boolean matcherAzureDomain(HttpServletRequest httpServletRequest) {
var domain = AzureConfigProperties.getAzureDomain();
return domain != null && Optional.ofNullable(httpServletRequest).map(HttpServletRequest::getRequestURI).filter(u -> u.contains(domain)).isPresent();
return domain != null && Optional.ofNullable(httpServletRequest).map(r -> r.getRequestURL().toString()).filter(u -> u.contains(domain)).isPresent();
}

private void cleanCookieJar(Response.ResponseBuilder builder, HttpHeaders headers) {
Expand Down

0 comments on commit 8dfbc87

Please sign in to comment.