K
K
korzh172020-08-06 15:52:47
Java
korzh17, 2020-08-06 15:52:47

Which method of authorization and authentication to choose?

I started thinking about an application for a diploma. Probably I will do "Restaurant Management system". I thought about what authentication method to use.
Should I use JWT? After all, it is constantly hyped and a bunch of guides on it on the Internet. Or should I use sessions? What is better for backend rest api?

Or jwt is more suitable for some toy projects that are not related to serious business?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-08-06
@korzh17

What is better for backend rest api?

REST API backends are different, but there is no single best solution for everyone. Use whatever suits your particular case best.
Or jwt is more suitable for some toy projects that are not related to serious business?

JWT is more suitable for a cluster of stateless services. Sberbank, for example, has such toy projects.

I
Igor, 2020-08-09
@hddn

Or jwt is more suitable for some toy projects that are not related to serious business?

Public Services uses OAuth2 + JWT. Such a fun project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question