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);
}
}
Aggregations