K
K
knowledge2018-01-23 20:32:24
Chats
knowledge, 2018-01-23 20:32:24

What is the best way to implement authentication on the site?

The question arose of implementing user authentication on the site.
I planned to make standard authentication using sessions, but more and more often I see information about the use of tokens, whether it makes sense and where you can read about it with a normal description. It is planned to simply authenticate users on one site

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Prozorov, 2018-01-23
@i_d_1

If you need to implement REST technology, or plan to use it in conditions where there are no cookies, then the authorization token solves these problems. However, this is just one of the authorization options. Architecture the ability to switch between authorization methods, and one day when you need tokens, you just write a new authorization method and go drink whiskey ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question