spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.
http://projects.spring.io/spring-social
Apache License 2.0
619 stars 351 forks source link

ConnectionSignUp error handling #192

Open imarban opened 8 years ago

imarban commented 8 years ago

In ConnectionSignUp implementation I have to return null to indicate that an implicit local user profile could not be created. I want to check the domain of the user's email and if it does not match a pattern the account can not be created. Returning null in execute method in ConnectionSignUp implementation I can not show to the user an specific error: You can not log in with that account. Please try it again with another one.

How can I face this? Where should I check the domain of the email?