Skip to content

Commit

Permalink
Polish WebSessionOAuth2ServerAuthorizationRequestRepository Format
Browse files Browse the repository at this point in the history
Issue: gh-6215
  • Loading branch information
rwinch committed Feb 15, 2019
1 parent a60fd43 commit 752733e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public Mono<OAuth2AuthorizationRequest> loadAuthorizationRequest(
public Mono<Void> saveAuthorizationRequest(
OAuth2AuthorizationRequest authorizationRequest, ServerWebExchange exchange) {
Assert.notNull(authorizationRequest, "authorizationRequest cannot be null");
return saveStateToAuthorizationRequest(exchange).doOnNext(stateToAuthorizationRequest ->
stateToAuthorizationRequest.put(authorizationRequest.getState(), authorizationRequest)).then();
return saveStateToAuthorizationRequest(exchange)
.doOnNext(stateToAuthorizationRequest -> stateToAuthorizationRequest.put(authorizationRequest.getState(), authorizationRequest))
.then();
}

@Override
Expand Down

0 comments on commit 752733e

Please sign in to comment.