Make Spring-Boot's implicit autoconfiguration explicit
[examples/facebook-app] / src / main / java / de / juplo / yourshouter / AnonymousUserIdSource.java
1 package de.juplo.yourshouter;
2
3 import org.springframework.social.UserIdSource;
4
5
6 /**
7  * Simple implementation of {@link UserIdSource}, that always returns the
8  * string <code>anonymous</code> as user-ID, like the UserIdSource, that is
9  * automatically configured by Spring-Boot, if Spring-Security is not
10  * present.
11  *
12  * @author Kai Moritz
13  */
14 public class AnonymousUserIdSource implements UserIdSource
15 {
16   @Override
17   public String getUserId()
18   {
19     return "anonymous";
20   }
21 }