简体   繁体   English

在CLI中使用Laravel社交名媛

[英]Using Laravel socialite with CLI

Can socialite authenticate from the CLI without the need to use curl? 是否可以通过CLI从社交名流进行身份验证,而无需使用curl? my purpose is to get data from angellist every two hours and store them in the database. 我的目的是每两个小时从angellist中获取数据并将其存储在数据库中。 so I thought I can have a scheduler to run every two hours. 所以我想我可以让调度程序每两个小时运行一次。 but I need to be authenticated and I don't want to use curl as socialite has many features already in place. 但是我需要通过身份验证,并且我不想使用curl,因为社交名流已经具有许多功能。

I love to hear your suggestions. 我很高兴听到您的建议。

I recommend using Mozilla Persona for user authentication, that way you don't have to worry about which social login the user has/doesn't have. 我建议使用Mozilla Persona进行用户身份验证,这样您就不必担心用户拥有/不拥有哪个社交登录名。

It's probably easier to set up too, and you don't need an https certificate because the the authentication is happening elsewhere (like social auth). 设置起来也可能更容易,并且您不需要https证书,因为身份验证发生在其他地方(例如社交身份验证)。

Here's a link to the setup 这是设置的链接

Here's a link to the setup 这是设置的链接

Here's a php code example 这是一个PHP代码示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM