2

我希望我不会太密集,但我不知道如何使用 phpoidc。我已经从https://bitbucket.org/PEOFIAMP/phpoidc下载了 phpoidc 。我已按照安装文件中的说明进行操作。既然它应该安装了,我该如何使用它?似乎没有关于此的任何文档。

我只想在我的网站上设置简单的用户身份验证。我正在运行 CodeIgniter 3.0 rc。我主要想允许使用谷歌帐户登录。

4

1 回答 1

1

Are you talking about the OP side or RP side? OP side should be quite self-explanatory as it is a stand alone thing. RP side needs integration to your application. The phpRp is just a sample implementation that uses these libraries. What it does is to create an OpenID Connect request and process the call back to see validate the response. Then, typically, an application needs to associate the iss and sub in the ID Token to a local account: you need a mapping table for it. Once you are done with that, create a session and off you go.

于 2015-03-12T09:09:22.623 回答