use of org.pac4j.oauth.client.BitbucketClient in project cas by apereo.
the class Pac4jAuthenticationEventExecutionPlanConfiguration method configureBitbucketClient.
private void configureBitbucketClient(final Collection<BaseClient> properties) {
final Pac4jProperties.Bitbucket bb = casProperties.getAuthn().getPac4j().getBitbucket();
if (StringUtils.isNotBlank(bb.getId()) && StringUtils.isNotBlank(bb.getSecret())) {
final BitbucketClient client = new BitbucketClient(bb.getId(), bb.getSecret());
properties.add(client);
}
}
Aggregations