Skip to content

Commit

Permalink
Add OAuth2ClientSpec.and
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Sep 20, 2018
1 parent 73c1abb commit 8a49c43
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,14 @@ public OAuth2ClientSpec authorizedClientRepository(ServerOAuth2AuthorizedClientR
return this;
}

/**
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
* @return the {@link ServerHttpSecurity} to continue configuring
*/
public ServerHttpSecurity and() {
return ServerHttpSecurity.this;
}

protected void configure(ServerHttpSecurity http) {
ReactiveClientRegistrationRepository clientRegistrationRepository = getClientRegistrationRepository();
ServerOAuth2AuthorizedClientRepository authorizedClientRepository = getAuthorizedClientRepository();
Expand Down

0 comments on commit 8a49c43

Please sign in to comment.