31

I want customers to use their openId on my site. I googled for this but didn't find any good tutorial. I use PHP and MySQL.

There is one at Plaxo. But it says we should download something from JanRain.com.

I saw the openId module of Drupal. It doesn't want anything to be downloaded.

Can anyone tell me what to do exactly?

4

9 に答える 9

24

スタック オーバーフローは、ホットな JavaScript インターフェースにこのライブラリを使用します: http://code.google.com/p/openid-selector/

于 2009-08-15T20:35:48.853 に答える
12

多くの適切なライブラリがここにリストされています: http://wiki.openid.net/Libraries

于 2009-02-17T04:02:28.953 に答える
4

DrupalのOpenIDモジュールは、PHPで最も一般的に使用されているOpenIDの実装である4.7.xのJanRainライブラリを使用して開始されました。

すでにDrupalコアに組み込まれているため、Drupalにライブラリをダウンロードする必要はありません。

于 2009-01-25T04:46:44.187 に答える
4

uservoiceと同じようにrpxを使用することもできます。

于 2009-01-26T03:51:36.627 に答える
3

If you are hosting your site on a linux machine, there should be a php-openid package you can install that will supply you with an open id client library you can use to enable open id logins. The package comes with good example code to get you started. If you aren't running linux or your distribution doesn't have php-openid, I'm 99% certain that php-openid is based on (or is directly) JanRain.com's php library, so downloading it directly should get you the same thing.

于 2009-01-25T04:26:09.517 に答える
1

Zend Frameworkは、スタンドアロンとして使用できる(つまり、フレームワークの残りの部分に依存しない)、または少なくとも最小限の対話しか必要としないOpenIDコンポーネントも開発しました(リダイレクトに応答オブジェクトを使用すると思います)。

いずれにせよ、これはさらに別のオプションであり、ZFが支援するサイトを構築する場合に特に役立ちます。

于 2009-01-25T05:06:26.160 に答える
0

私はちらりと見ただけですが、 http://www.saeven.net/openid.htmでうまくいきますか?

于 2009-01-25T04:26:54.257 に答える
0

PHP での OpenID Identity Server および Consumer の実装を支援するために、次のライブラリを利用できます。このセクションのライブラリは、OpenID に固有のすべての詳細を処理し、それをサイトに統合するための接着剤を提供することを支援することを目的としています。ソース

于 2015-11-26T10:33:04.850 に答える
0

HybridAuthは、オープン ソースのソーシャル サインオン php ライブラリです。

HybridAuth ライブラリの主な目的は、アプリケーションとさまざまなソーシャル API および ID プロバイダー (Facebook、Twitter、LinkedIn、Google、Yahoo など) との間の抽象 API として機能することです。

HybridAuth を使用すると、ソーシャル サインイン、ソーシャル共有、ユーザー プロファイル、フレンド リスト、アクティビティ ストリーム、ステータス更新などを実装することで、開発者はソーシャル アプリケーションを簡単に構築して、Web サイトの訪問者や顧客をソーシャル レベルで引き付けることができます。

HybridAuth を使用した Hello world:

<?php
 $config = dirname(__FILE__) . '/library/config.php';
 require_once( "library/Hybrid/Auth.php" );

 try{
     $hybridauth = new Hybrid_Auth( $config ); 
     $twitter = $hybridauth->authenticate( "Twitter" );
     $user_profile = $twitter->getUserProfile();
     echo "Hi there! " . $user_profile->displayName;
     $twitter->setUserStatus( "Hello world!" );
     $user_contacts = $twitter->getUserContacts();
 }
 catch( Exception $e ){
     echo "Ooophs, we got an error: " . $e->getMessage();
 }
于 2015-11-26T11:09:57.833 に答える