S
S
Stanislav Pochepko2017-03-30 19:17:38
OAuth
Stanislav Pochepko, 2017-03-30 19:17:38

How to implement OAuth application authentication in laravel?

Hi everybody.
I have a problem while implementing a laravel project.
There is one application on laravel which is considered a client and there is an api server with oauth authentication also on laravel. The following packages are on the server

"bshaffer/oauth2-server-php": "~1.8",
"bshaffer/oauth2-server-httpfoundation-bridge": "^1.1",

Actually a question.
How to properly implement client application authentication? Now this is all done manually in the controllers, but I would like the User in the application to be truly authenticated and filled with the data that the server returns.
PS Kick in the right direction))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2017-03-30
@Yadalay

Remove those packages and install this - https://github.com/laravel/socialite - the easiest package to use.

U
UksusoFF, 2017-03-30
@UksusoFF

https://laravel.com/docs/5.4/passport

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question