Answer the question
In order to leave comments, you need to log in
How to implement authorization on the site through the Android application?
I work on Android Studio - Java, I want to create an application for the site, but I don’t quite understand how to implement authorization through the application, if everything is clear with the browser, just open a session in php, then I don’t have such a good understanding of how to implement such functionality.
I'd be grateful for any hints or examples!
Answer the question
In order to leave comments, you need to log in
In fact, everything is simple, there are of course different approaches, libraries ─ OAuth 2.0, OAuth, etc. ... but this is not always necessary
if simplifying, the server simply sends a token during authorization (just a string, the lifetime of the token and other logic on the server's conscience)
Each application request to the server is signed with this token, there are options ─ someone writes it in the header, someone just passes it as a parameter ....
Quite a viable option, cheap and cheerful )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question