W
W
WebDev2017-09-25 11:09:10
User identification
WebDev, 2017-09-25 11:09:10

Is it possible to use such authorization?

I have a website, I am making a mobile application on phonegap. Due to the lack of functionality, there were many problems with authorization. For example, authorization through social networks and third-party sites, which is tied to the site's domain, is a pain.
In general, I decided everything as follows:
In my application, I open my site and from it I go through authorization through social networks. The social network redirects the user back to my site, where I generate a token on the page, save it in the database and give it to the application. The application saves this token in local storage and sends it every time it accesses the server, which finds this token in the database and returns the necessary data.
That is, additional authorization did not appear for me, it remained the same as it was through the server part of the site.
Are there any pitfalls with this approach?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-09-25
Ahen @Ahen

Pitfalls - in the store, most likely, they will not be allowed.
It is necessary to cut stand-alone authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question