Fix ServerOAuth2AuthorizedClientExchangeFilterFunctionTests Merge
Issue: gh-5872
This commit is contained in:
parent
dcbf762a0b
commit
410f6bae1a
|
@ -303,7 +303,7 @@ public class ServerOAuth2AuthorizedClientExchangeFilterFunctionTests {
|
||||||
@Test
|
@Test
|
||||||
public void filterWhenDefaultClientRegistrationIdThenAuthorizedClientResolved() {
|
public void filterWhenDefaultClientRegistrationIdThenAuthorizedClientResolved() {
|
||||||
this.function.setDefaultClientRegistrationId(this.registration.getRegistrationId());
|
this.function.setDefaultClientRegistrationId(this.registration.getRegistrationId());
|
||||||
OAuth2RefreshToken refreshToken = new OAuth2RefreshToken("refresh-token", this.accessToken.getIssuedAt(), this.accessToken.getExpiresAt());
|
OAuth2RefreshToken refreshToken = new OAuth2RefreshToken("refresh-token", this.accessToken.getIssuedAt());
|
||||||
OAuth2AuthorizedClient authorizedClient = new OAuth2AuthorizedClient(this.registration,
|
OAuth2AuthorizedClient authorizedClient = new OAuth2AuthorizedClient(this.registration,
|
||||||
"principalName", this.accessToken, refreshToken);
|
"principalName", this.accessToken, refreshToken);
|
||||||
when(this.authorizedClientRepository.loadAuthorizedClient(any(), any(), any())).thenReturn(Mono.just(authorizedClient));
|
when(this.authorizedClientRepository.loadAuthorizedClient(any(), any(), any())).thenReturn(Mono.just(authorizedClient));
|
||||||
|
|
Loading…
Reference in New Issue