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:
parent
defc33913f
commit
4ab2c18440
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue