org.springframework.social.connect.web.SignInAdapter Java Examples
The following examples show how to use
org.springframework.social.connect.web.SignInAdapter.
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: SocialWebAutoConfiguration.java From spring-security-oauth2-boot with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnBean(SignInAdapter.class) @ConditionalOnMissingBean public ProviderSignInController signInController(ConnectionFactoryLocator factoryLocator, UsersConnectionRepository usersRepository, SignInAdapter signInAdapter) { ProviderSignInController controller = new ProviderSignInController(factoryLocator, usersRepository, signInAdapter); if (!CollectionUtils.isEmpty(this.signInInterceptors)) { controller.setSignInInterceptors(this.signInInterceptors); } return controller; }
Example #2
Source File: SocialConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
/** * create a custom authenticate utility method to create an * Authentication objet and add it to our SecurityContext based on * the returned provider details. * @return */ @Bean public SignInAdapter authSignInAdapter() { return (userId, connection, request) -> { SocialAuthenticationUtils.authenticate(connection); return null; }; }
Example #3
Source File: SocialConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@Bean public SignInAdapter authSignInAdapter() { return (userId, connection, request) -> { SocialAuthenticationUtils.authenticate(connection); return null; }; }
Example #4
Source File: SocialConfig.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@Bean public SignInAdapter authSignInAdapter() { return (userId, connection, request) -> { SocialAuthenticationUtils.authenticate(connection); return null; }; }
Example #5
Source File: _SocialConfiguration.java From jhipster-ribbon-hystrix with GNU General Public License v3.0 | 4 votes |
@Bean public SignInAdapter signInAdapter() { return new CustomSignInAdapter(); }