A
A
Amalat2022-03-03 17:20:45
Android
Amalat, 2022-03-03 17:20:45

How to make authorization in the application through the site?

There is a ready-made site with users, there is also authorization on the site, we decided to develop an application for the site (not a web application). The question is this: after opening the application, the login activity is launched, so how can I make sure that when entering data (login password), the user logs into his account just like on the site? Can somehow connect the site with the application or parse the authorization window from the site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antony, 2022-03-03
@RiseOfDeath

Форма логина посылает запрос к бэку и в ответ приходит какой-то токен. Собственно посмотрите как сайт делает авторизацию и сделайте так же. А еще лучше, если есть документация, почитать ее.

A
AlexVWill, 2022-03-04
@AlexVWill

How to make authorization in the application through the site?

"How can I build a spaceship so that it can fly to Mars?"
Well, you ask questions. How how? Sit down and google. See what type of authorization you have on the site, how the back processes it, do the same in android, send a login-password via POST in the application, process the response. Or did you want someone who, using telepathy, immediately wrote you a code?
It is better to ask specific questions, rather than abstract ones; you will receive only an abstract answer to an abstract question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question