Search in sources :

Example 1 with YahooClient

use of org.pac4j.oauth.client.YahooClient in project cas by apereo.

the class Pac4jAuthenticationEventExecutionPlanConfiguration method configureYahooClient.

private void configureYahooClient(final Collection<BaseClient> properties) {
    final Pac4jProperties.Yahoo yahoo = casProperties.getAuthn().getPac4j().getYahoo();
    if (StringUtils.isNotBlank(yahoo.getId()) && StringUtils.isNotBlank(yahoo.getSecret())) {
        final YahooClient client = new YahooClient(yahoo.getId(), yahoo.getSecret());
        properties.add(client);
    }
}
Also used : Pac4jProperties(org.apereo.cas.configuration.model.support.pac4j.Pac4jProperties) YahooClient(org.pac4j.oauth.client.YahooClient)

Aggregations

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