views:

38

answers:

1

Spring Security for us uses an email as the username and a password. To log someone in through code I call:

securityContext.setAuthentication(objectWithUsername);

How do I then allow facebook connect users to login who don't have an email or password with us? I can't call the above method because it requires a username.

A: 

Maybe you should look at OAuth for Spring Security and Authentication - Facebook Developers

Raghuram