S
S
Sergey2015-10-24 17:58:27
PHP
Sergey, 2015-10-24 17:58:27

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

2 answer(s)
O
Oleg Gamega, 2015-10-24
@goodwin74

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 )

O
one pavel, 2015-10-24
@onepavel

look for similar questions on the toaster, we analyzed authorization options and ways to create tokens for api requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question