Skip to content

Commit 75be204

Browse files
committed
aha!
1 parent 067e59e commit 75be204

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/client/src/intTest/java/org/projectnessie/client/auth/oauth2/ITOAuth2ClientAuthelia.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)