Y
Y
Yaroslav Alekseenko2015-06-04 08:59:07
JavaScript
Yaroslav Alekseenko, 2015-06-04 08:59:07

Where to store the token/code received from oauth2 on the site user's side?

Good afternoon, dear ones! Thank you for stopping by.
Given: We produce oauth2 authorization. The token/code is returned. The site works on the principle of a client-side application (on the first visit, everything is processed, and during the work only requests to the api are made. SSL is used.
Where to store it for further work with the site?
Thanks for the answers

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kidar2, 2015-06-04
@webdevfan

In the session of your web application.

S
scapp, 2015-06-04
@scapp

If you use satellizer, then this is an authorization token, you still need to exchange it for a working one. If everything is OK with the token - well, write it down in cookies and use it when you need it.

Y
Yaroslav Alekseenko, 2015-07-02
@webdevfan

I decided to write to localStorage, but I still monitor the security of this solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question