Search in sources :

Example 1 with BitbucketClient

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);
    }
}
Also used : BitbucketClient(org.pac4j.oauth.client.BitbucketClient) Pac4jProperties(org.apereo.cas.configuration.model.support.pac4j.Pac4jProperties)

Aggregations

Pac4jProperties (org.apereo.cas.configuration.model.support.pac4j.Pac4jProperties)1 BitbucketClient (org.pac4j.oauth.client.BitbucketClient)1