--- /dev/null
+package de.juplo.yourshouter;
+
+import org.springframework.social.UserIdSource;
+
+
+/**
+ * Simple implementation of {@link UserIdSource}, that always returns the
+ * string <code>anonymous</code> as user-ID, like the UserIdSource, that is
+ * automatically configured by Spring-Boot, if Spring-Security is not
+ * present.
+ *
+ * @author Kai Moritz
+ */
+public class AnonymousUserIdSource implements UserIdSource
+{
+ @Override
+ public String getUserId()
+ {
+ return "anonymous";
+ }
+}