Polish WebSessionOAuth2ServerAuthorizationRequestRepository Format

Issue: gh-6215
This commit is contained in:
Rob Winch 2019-02-15 15:00:44 -06:00
parent a60fd43534
commit 752733e8de
1 changed files with 3 additions and 2 deletions

View File

@ -62,8 +62,9 @@ public final class WebSessionOAuth2ServerAuthorizationRequestRepository
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