Re: [twmode-users] xAuth承認

2010-06-12 スレッド表示 Tadashi MATSUO
松尾です。

http://dev.twitter.com/pages/xauth
にconsumer_secret等の情報も追加されたので現在の実装を試して
みましたが、signatureもHTTP POST bodyも正しく生成できて
いたようです。

しかし実際に認証を試みると、以前と同じく
?xml version=1.0 encoding=UTF-8?
hash
  request/oauth/access_token/request
  errorClient application is not permitted to use xAuth./error
/hash
のメッセージが返ってくるだけで、まだ成功できていません。

ただ上記のページは
x_auth_password - %123!aZ+()456242134
となっているのにPOST bodyは
x_auth_mode=client_authx_auth_password=%25%26123%21aZ%2b%28%29456x_auth_username=tpFriendlyGiant
となっていて、実際には末尾の242134が欠けた
x_auth_password - %123!aZ+()456
を使ってるみたいです。「正しく生成できている」というのは
これを仮定してのものなので、どこか正しく扱えていない部分が
あるのかもしれません。


xAuthの申請では、consumer情報を隠せない点が問題になっていた
ようですが、http://twitter.com/twitterapiによると
open sourceなプログラムのための仕組みを導入する計画があるよう
です。

Coming soon: a solution for Open Source applications using OAuth with the 
Twitter API -   Twitter Development Talk | Google グループ
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/c18ade9d86c8b239

アプリケーション側には親consumer情報を入れておいて、利用者ごとに
子consumer情報を発行して使えるようにする仕組みのようです。

---
松尾 直志 t...@mymail.twin.jp

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users


Re: [twmode-users] xAuth承認

2010-06-08 スレッド表示 Yuto Hayamizu
はやみずです

 I just refreshed your application's permissions. If you still cannot
 access xAuth, please let me know.

とのことなので、今度こそ? xAuthが使えるようになったみたいです。今すぐ実
験できないので、とりいそぎ。


Yuto Hayamizu

Master's degree student at Kitsuregawa Laboratory
Department of Information and Communication Engineering
Graduate School of Information Science and Technology
University of Tokyo

From: Yuto Hayamizu y.hayam...@gmail.com
Subject: Re: xAuth承認
Date: Mon, 07 Jun 2010 03:09:26 +0900 (JST)

 はやみずです
 
 xAuthはまだ使える状態にはなっていないようです。
 xAuth承認の連絡をうけて試しにxAuthを使ってみようとしたら、下記のような
 レスポンスが返ってきました。
 
 ?xml version=1.0 encoding=UTF-8?
 hash
   request/oauth/access_token/request
   errorClient application is not permitted to use xAuth./error
 /hash
 
 Twitter側にいつから使えるようになるのか問い合わせておきました。
 
 
 Yuto Hayamizu
 
 Master's degree student at Kitsuregawa Laboratory
 Department of Information and Communication Engineering
 Graduate School of Information Science and Technology
 University of Tokyo
 
 From: Yuto Hayamizu y.hayam...@gmail.com
 Subject: xAuth承認
 Date: Sat, 05 Jun 2010 02:09:36 +0900 (JST)
 
 はやみずです
 
 xAuthの使用が承認されたという連絡がきました。結局審査基準はよくわからな
 かったのですが、、、
 
 とりあえず6/5付けでOAuth対応版をリリースしてしまって、その後xAuth対応版
 を近いうちにリリースという方針で考えています。
 
 
 Yuto Hayamizu
 
 Master's degree student at Kitsuregawa Laboratory
 Department of Information and Communication Engineering
 Graduate School of Information Science and Technology
 University of Tokyo
 

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users