Skip to content

Commit

Permalink
replace left over vars for Java 8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jonah1und1 committed Oct 2, 2024
1 parent 5e2b304 commit 157267a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Mono<Authentication> convert(ServerWebExchange exchange) {
}

private Mono<String> token(ServerWebExchange exchange) {
final var request = exchange.getRequest();
final ServerHttpRequest request = exchange.getRequest();

return Flux.merge(resolveFromAuthorizationHeader(request.getHeaders()).map(s -> Tuples.of(s, TokenSource.HEADER)),
resolveAccessTokenFromRequest(request).map(s -> Tuples.of(s, TokenSource.QUERY_PARAMETER)),
Expand Down Expand Up @@ -179,7 +179,7 @@ private Mono<String> resolveAccessTokenFromBody(ServerWebExchange exchange) {
return Mono.empty();
}

final var request = exchange.getRequest();
final ServerHttpRequest request = exchange.getRequest();

if (request.getMethod() == HttpMethod.POST &&
MediaType.APPLICATION_FORM_URLENCODED.equalsTypeAndSubtype(request.getHeaders().getContentType())) {
Expand All @@ -188,7 +188,7 @@ private Mono<String> resolveAccessTokenFromBody(ServerWebExchange exchange) {
if (formData.isEmpty()) {
return null;
}
final var tokens = formData.get(ACCESS_TOKEN_NAME);
final List<String> tokens = formData.get(ACCESS_TOKEN_NAME);
if (tokens == null) {
return null;
}
Expand Down

0 comments on commit 157267a

Please sign in to comment.