Hi,
I have followed the spring social integration tutorial and I am now able to allows users to social-sigin on my website using Google, Facebook and Linkedin.
Now, when the user successfully authenticates from the social site and comes back to my application, he is being presented with a registration page with email, first name, last name fields pre-filled. He needs to insert the password. I am extending "BroadleafSocialRegisterController" in my "RegisterController".
Now, what I actually want to do is this :-
- Once a user successfully authenticates and comes back to my site, I want to Login them as a new user and directly "Log them in" , instead of again presenting them with register page. Its NO point in asking for registration even when user wants to use his social-site credentials.
- When user authenticates from social site, I need to create a new user in my DB with his email-id and name ( Which I am already getting ), with some default password, so that when next times he uses his social login, I should login him, instead of taking him to register page.
How can I achieve this. I am very close , just need that last thread. I am already having the social login working and after social-site authentication, user is login on register page with all details (except password) prefilled.
Let me know, How can I achieve this last mile.
- Sumit Rathore
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.