use of org.keycloak.services.clientregistration.RegistrationAccessToken in project keycloak by keycloak.
the class ClientRegistrationPoliciesTest method assertRegAccessToken.
private void assertRegAccessToken(String registrationAccessToken, RegistrationAuth expectedRegAuth) throws Exception {
byte[] content = new JWSInput(registrationAccessToken).getContent();
RegistrationAccessToken regAccessToken = JsonSerialization.readValue(content, RegistrationAccessToken.class);
Assert.assertEquals(regAccessToken.getRegistrationAuth(), expectedRegAuth.toString().toLowerCase());
}
Aggregations