File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
api/client/src/intTest/java/org/projectnessie/client/auth/oauth2 Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ static void beforeAll() {
100100 @ Test
101101 void testOAuth2ClientCredentials () throws Exception {
102102 OAuth2ClientConfig config =
103- clientConfig ("nessie-private-cc" ).grantType (GrantType .CLIENT_CREDENTIALS ).build ();
103+ clientConfig ("nessie-private-cc" )
104+ .grantType (GrantType .CLIENT_CREDENTIALS )
105+ .authorizationCodeFlowWebServerPort (NESSIE_CALLBACK_PORT )
106+ .build ();
104107 try (OAuth2Client client = new OAuth2Client (config )) {
105108 Tokens tokens = client .fetchNewTokens ();
106109 soft .assertThat (tokens .getAccessToken ()).isNotNull ();
@@ -119,6 +122,7 @@ void testOAuth2AuthorizationCode() throws Exception {
119122 clientConfig ("nessie-private-ac" )
120123 .grantType (GrantType .AUTHORIZATION_CODE )
121124 .console (resourceOwner .getConsole ())
125+ .authorizationCodeFlowWebServerPort (NESSIE_CALLBACK_PORT )
122126 .build ();
123127 try (OAuth2Client client = new OAuth2Client (config )) {
124128 resourceOwner .setErrorListener (e -> client .close ());
You can’t perform that action at this time.
0 commit comments