org.springframework.social.UserIdSource Java Examples
The following examples show how to use
org.springframework.social.UserIdSource.
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: SocialConfig.java From lolibox with Apache License 2.0 | 5 votes |
@Override public UserIdSource getUserIdSource() { return () -> { Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (authentication == null) { throw new IllegalStateException("Unable to get a ConnectionRepository: no user signed in"); } return authentication.getName(); }; }
Example #2
Source File: CustomSocialAutoConfigurerAdapter.java From codeway_service with GNU General Public License v3.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }
Example #3
Source File: SocialConfig.java From pre with GNU General Public License v3.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }
Example #4
Source File: CustomSocialAutoConfigurerAdapter.java From codeway_service with GNU General Public License v3.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }
Example #5
Source File: FebsSocialWebAutoConfiguration.java From FEBS-Security with Apache License 2.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return () -> "anonymous"; }
Example #6
Source File: FebsSocialWebAutoConfiguration.java From FEBS-Security with Apache License 2.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new SecurityContextUserIdSource(); }
Example #7
Source File: SocialWebAutoConfiguration.java From spring-security-oauth2-boot with Apache License 2.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return () -> "anonymous"; }
Example #8
Source File: SocialWebAutoConfiguration.java From spring-security-oauth2-boot with Apache License 2.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new SecurityContextUserIdSource(); }
Example #9
Source File: GoogleConfigurerAdapter.java From OAuth-2.0-Cookbook with MIT License | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }
Example #10
Source File: _SocialConfiguration.java From jhipster-ribbon-hystrix with GNU General Public License v3.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }
Example #11
Source File: StatelessSocialConfig.java From boot-stateless-social with MIT License | 4 votes |
@Override public UserIdSource getUserIdSource() { // retrieve the UserId from the UserAuthentication in the security context return new UserAuthenticationUserIdSource(); }
Example #12
Source File: SocialConfig.java From blog-social-login-with-spring-social with Apache License 2.0 | 4 votes |
@Override public UserIdSource getUserIdSource() { return new AuthenticationNameUserIdSource(); }