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