I've implemented a Spring
app with mongodb
and now I've implemented Rest authentication with Spring security and Mongodb, and now I have to add the Authorization
header, and it only shows the data from the api call if the Authorization
is ok, from now it's ok, but I'm wondering how do I get this value? I mean I want to make a Login to the app, should I have an authorization for this? If not, the login response should return this authorization to use it in next calls?
I also have read about aws token
also of oauth2
, but I really want to know the process, I mean, what's the flow a normal user can Log in to the app and then make calls with authorizations?
My platforms are :
DB -- MongoDB
Server -- Spring
Web -- Angular
App -- Android
This is a project for a Quiz game, that could support multigame options (more than 1 player playing at once)
So what I need to understand is from APP / WEB I have to make a call let's say api/v1/login and then send the user and password, ok, where's the part when I have to create the bcrypted and salt stuff to store it into db? Do I have to do it on the app and then send for instance the SHA stuff via JSON in the Login call or it's better to send the password to server so server does all of the stuff and store the stuff on the db?