Test with error (unhautorized) for the refresh token with only the refresh token, since a `confidential` client is used for testing.

This commit is contained in:
Mauro Mugnaini 2021-12-17 17:59:31 +01:00
parent defc33913f
commit 4ab2c18440
1 changed files with 6 additions and 0 deletions

View File

@ -79,4 +79,10 @@ public class TestKeycloakClient {
TestModels.checkRefreshToken(ModelUtils.getRefreshTokenFrom(refreshedTR));
}
@Test(expected = KeycloakClientException.class)
public void test6RefreshTokenWithDiscoveryAndClientIdFromRefreshToken() throws Exception {
logger.info("Start testing refresh UMA token with error since is not a public client...");
KeycloakClientFactory.newInstance().refreshToken(tr.getRefreshToken());
}
}