J
J
Jora007772017-01-05 09:51:33
Laravel
Jora00777, 2017-01-05 09:51:33

What are the options for implementing automatic authorization?

Hello.
We are writing a project in PHP (Laravel), a dispute arose, we need an outside opinion.
At the moment, the task is to implement automatic authorization on the site when clicking on a link in a letter.
Those. a person receives a letter > he goes from it to his personal account, without entering passwords, and so on.
What is the best way to technically implement this task, what approach will be the most justified and safe?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2017-01-05
@Jora00777

The words "best" and "most" don't apply here, of course, as they do in most programming-related questions.
On one of my projects I did it like this:
The system turned out to be very flexible (by email, you can do everything that can be done on the site - accept a friend request, send a comment with a standard text, open a form for editing something) and secure (all important actions are one-time and there is a check for access rights, how much it possibly). And you get authorization by link as a bonus, because each action requires an authorized user, otherwise tokens would not be needed.
Here, I'll even give you a part of the code: https://gist.github.com/alexey-m-ukolov/9588dcefc9...

E
Eugene, 2017-01-06
@beatleboy

Use jwtauth tokens. Everything is already thought out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question