use of com.nimbusds.oauth2.sdk.pkce.CodeVerifier in project cas by apereo.
the class NimbusOAuthJacksonModuleTests method verifyOperation.
@Test
public void verifyOperation() throws Exception {
val mapper = SERIALIZER.getObjectMapper();
assertTrue(mapper.getRegisteredModuleIds().contains(NimbusOAuthJacksonModule.class.getName()));
runTest(CodeVerifier.class, new CodeVerifier(RandomUtils.randomAlphabetic(CodeVerifier.MIN_LENGTH)));
runTest(BearerAccessToken.class, new BearerAccessToken("access-token-value"));
runTest(RefreshToken.class, new RefreshToken("access-token-value"));
runTest(AccessTokenType.class, AccessTokenType.BEARER);
runTest(Scope.class, new Scope("profile"));
}
Aggregations