Kai Moritz [Mon, 1 Feb 2016 09:02:59 +0000 (10:02 +0100)]
Switched from InMemoryUsers- to JdbcUsersConnectionRepository with H2
This only works, if you have the full strength version of the Java
Cryptographic Exctension (JCE) installed, since Spring Security is using
a 256-bit key.
See http://stackoverflow.com/a/17637354 for a full explanation.
Kai Moritz [Mon, 25 Jan 2016 01:01:28 +0000 (02:01 +0100)]
Implemented a simple UserIdSource, that stores the user in a cookie
This concept was borrowed from the official example "Spring Social Canvas".
The idea to store the internal user-id in a cookie and later load the data
of the user according to the cookie is inherent insecure and must not be
used in a production environment.
One simply can use Spring-Security instead - we will show how to switch in
a later example.
This implementation was choosen only for educational purposes, because it
clarifys the design of Spring Social.