Search in sources :

Example 1 with GitHubClient

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

Aggregations

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