- First REST operation working

This commit is contained in:
Paulo Gustavo Veiga
2012-02-12 21:57:11 -03:00
parent 5fd6ba30f5
commit 826606dc53
11 changed files with 133 additions and 77 deletions

View File

@@ -21,6 +21,7 @@ public class AuthenticationProvider implements org.springframework.security.auth
public Authentication authenticate(@NotNull final Authentication auth) throws AuthenticationException {
// All your user authentication needs
final String email = auth.getName();
final User user = userManager.getUserBy(email);
final String credentials = (String) auth.getCredentials();