Laravel&Dingo:具有Facebook / Google登录名的安全API

Dan*_*ehn 5 facebook oauth laravel dingo-api

我已使用Dingo框架在Laravel中开发了一个API。现在,我想通过Facebook和/或Google登录(例如,使用OAuth)保护API访问权限

有教程或类似的东西吗?我不知道如何将安全的API访问集成到我的api中。

谢谢!

Squ*_*gs. 0

一些链接可能会为您指明正确的方向:

Dingo 似乎通过https://github.com/thephpleague/oauth2-server支持( https://github.com/dingo/api/wiki/Authentication)OAuth2

然后检查这些关联的包。

https://github.com/thephpleague/oauth2-facebook