use of org.pac4j.scribe.builder.api.BitBucketApi in project pac4j by pac4j.
the class BitbucketClient method clientInit.
@Override
protected void clientInit() {
configuration.setApi(new BitBucketApi());
configuration.setProfileDefinition(new BitbucketProfileDefinition());
defaultLogoutActionBuilder((ctx, profile, targetUrl) -> RedirectAction.redirect("https://bitbucket.org/account/signout/"));
super.clientInit();
}
use of org.pac4j.scribe.builder.api.BitBucketApi in project pac4j by pac4j.
the class RunOAuth10Client method getClient.
@Override
protected IndirectClient getClient() {
final OAuth10Configuration config = new OAuth10Configuration();
config.setKey("bjEt8BMpLwFDqZUvp6");
config.setSecret("NN6fVXRTcV2qYVejVLZqxBRqHgn3ygD4");
config.setApi(new BitBucketApi());
config.setProfileDefinition(new BitbucketProfileDefinition());
final OAuth10Client client = new OAuth10Client();
client.setCallbackUrl(PAC4J_BASE_URL);
client.setConfiguration(config);
return client;
}
Aggregations