This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring boot and react facebook login  RSS feed

 
Karol wrobel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm starting a project using spring boot on backend, and react.js on front. The task I'm working on is handling the account creation, particularly authenticating using facebook/google etc. After successful logging I want to redirect to some next step in account creation. I have few approach to consider, don't know which one would work best in given scenario and tech stack.

1) Handling the social logon on back site with spring boot. But then how can I redirect to next step which is on react side (after successful logging)? How can I pass the direct url to which I would like to go? It's not in the spring app range, isn't it?

Wouldn't it be better to 2) Handle the social logon using react, get the data I need and send it to back for persisting into db and keeping the session and proceed on the front to next step?

I don't know which approach to go with. Guys, do you have any suggestions or examples I could analyse? Maybe I'm completely wrong with my thinking...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!