使用混合身份验证和代码点火器

Working with hybrid auth and codeigniter

我正在尝试使用 CodeIgniter 构建一个项目,出于注册目的,我正在使用 Hybrid Auth 库。我正在使用类似于“http://localhost/project/hauth/endpoint?hauth.done=Google”的 link 作为我的 facebook 和 google 的重定向 URI。

应用程序运行良好。但问题是我不明白这个 "hauth.done" 是什么意思。
一旦我允许许可,它会将我重定向到上面提供的 link,我不知道如何接收 data/userprofile 信息。

这是因为您应该在调用 api 时提供正确的重定向 URL,然后当 Hauth 重定向到您想要的页面时,您可以根据您的代码参考检索您的信息。 否则,当您使用 Codeigniter 时,我的建议是使用 git 参考,您可以在其中找到应用程序目录的完整代码。在该代码中,他们已经获得了用户个人资料信息。 Git repo

这是与最新的 HybridAuth (v2.10) 和 CodeIgniter (v3.x) 配合使用的更新库

https://github.com/ApacheEx/CodeIgniter-HybridAuth

hauth.done 用于通过 Hybrid_Endpoint::process(); 完成授权,它调用 processAuthDone 保存所有需要的令牌以供以后 API 请求使用。