org.springframework.social.connect.web.ConnectController Java Examples

The following examples show how to use org.springframework.social.connect.web.ConnectController. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GitHubConfiguration.java    From codeway_service with GNU General Public License v3.0 5 votes vote down vote up
@Bean
public ConnectController connectController(
		ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {
	ConnectController controller = new ConnectController(
			factoryLocator, repository);
	controller.setApplicationUrl("http://localhost:8090");
	return controller;
}
 
Example #2
Source File: GitHubConfiguration.java    From codeway_service with GNU General Public License v3.0 5 votes vote down vote up
@Bean
public ConnectController connectController(
		ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {
	ConnectController controller = new ConnectController(
			factoryLocator, repository);
	controller.setApplicationUrl("http://localhost:8090");
	return controller;
}
 
Example #3
Source File: GitHubConfiguration.java    From oauth2lab with MIT License 5 votes vote down vote up
@Bean
public ConnectController connectController(
		ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {

	ConnectController controller = new ConnectController(
		factoryLocator, repository);
	controller.setApplicationUrl("http://localhost:8080");
	return controller;
}
 
Example #4
Source File: SocialWebAutoConfiguration.java    From spring-security-oauth2-boot with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnMissingBean(ConnectController.class)
public ConnectController connectController(ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {
	ConnectController controller = new ConnectController(factoryLocator, repository);
	if (!CollectionUtils.isEmpty(this.connectInterceptors)) {
		controller.setConnectInterceptors(this.connectInterceptors);
	}
	if (!CollectionUtils.isEmpty(this.disconnectInterceptors)) {
		controller.setDisconnectInterceptors(this.disconnectInterceptors);
	}
	return controller;
}
 
Example #5
Source File: LinkedInConfiguration.java    From OAuth-2.0-Cookbook with MIT License 5 votes vote down vote up
@Bean
public ConnectController connectController(ConnectionFactoryLocator locator,
		ConnectionRepository repository) {
	ConnectController controller = new ConnectController(locator, repository);
	controller.setApplicationUrl("http://localhost:8080");
	return controller;
}
 
Example #6
Source File: GitHubConfiguration.java    From OAuth-2.0-Cookbook with MIT License 5 votes vote down vote up
@Bean
public ConnectController connectController(
		ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {

	ConnectController controller = new ConnectController(
		factoryLocator, repository);
	controller.setApplicationUrl("http://localhost:8080");
	return controller;
}
 
Example #7
Source File: FacebookConfiguration.java    From OAuth-2.0-Cookbook with MIT License 5 votes vote down vote up
@Bean
public ConnectController connectController(
		ConnectionFactoryLocator factoryLocator,
		ConnectionRepository repository) {

	ConnectController controller = new ConnectController(
		factoryLocator, repository);
	controller.setApplicationUrl("http://localhost:8080");
	return controller;
}
 
Example #8
Source File: SocialConfig.java    From AIDR with GNU Affero General Public License v3.0 4 votes vote down vote up
@Bean
public ConnectController connectController() {
    ConnectController controller = new ConnectController(connectionFactoryLocator, connectionRepository);
    controller.setApplicationUrl(callbackURL);
    return controller;
}