2
Well, the mini world of my project is as follows::
I am creating an application, where I will consume a database by the json method, where I validate the logged-in user, however when I am asked to add some other information in the database itself, how will I identify that user X is adding and not user Y ? The method I thought is to record a session variable, so I will always know that the X user of cell phone x, is adding a content.
Is there any solution to this doubt ? I need a north to study more about this. I thank the one who collaborate with something.
User view:
Suppose I am the user of the application: I need to log in to access my information, after this I have the possibility to register a new student, make a call to this student, in addition to be able to make a report for how was the class.
Programmer’s view:
I need to record the login data made by the user where I can identify what information I need to change, because there may be several logged in users and each user is part of a school for example. When the user registers the student, it is necessary to identify which user is doing this, could use through sharedPreferences however my program would be veranevel for any type of hacker.
It would not be necessary for me to use login through facebook, outlook, gmail among others, because they are not all people who have these logins, besides, I need to register the "teacher" in advance because only free access people registered in my systems.
Do you have a website to tell me about this token ? Do I need to read more about this, and learn how to implement it ? If you know of any video classroom in production, I would be grateful.
– Renan Rodrigues
This authentication thing is hairy, I don’t really understand it myself. The staff usually recommend not to re-invent the wheel in this case, instead give preference to something ready as Oauth2. If you detail your scenario better (what credentials are used, whether from Facebook, Google, or other case), preferably in another question here at SOPT, the staff can help more.
– Piovezan
I’ve given my question one more time, see if you can understand, and if there’s anything to help me.
– Renan Rodrigues
I supplemented the answer.
– Piovezan
I found nothing referring to Oauth2 for the use I need, not interested in using facebook or something to authenticate, I need to be authenticated with my server. Could I help myself to find something that uses this specific ? Or would I have another solution (in Portuguese) to introduce myself ?
– Renan Rodrigues
Oauth 2.0 is generic, unrelated to Facebook or Google (I cited these services because they offer their own Apis for authentication). And there’s a problem: I couldn’t find tutorials in Portuguese for Android, only in English.
– Piovezan