A
A
Alexander2019-07-31 23:40:17
OAuth
Alexander, 2019-07-31 23:40:17

How to send bearer token in header from client to server?

Hello.
I was given the task to implement user authentication on the Lumen microframework through a third party.
After successful authentication, I receive user data from a third party.
Next, I need to authorize it on the site. But, out of the box, Lumen does not store state (no sessions).
Out of the box, there is only authorization by tokens ..
So, they told me to do authentication by tokens, through bearer .. But I don’t understand how to make the token bind to the browser headers and be sent with each subsequent request to the server how does basic authorization do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question