Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[最重要] OAuth対応 #118

Closed
sorah opened this issue Apr 27, 2010 · 5 comments
Closed

[最重要] OAuth対応 #118

sorah opened this issue Apr 27, 2010 · 5 comments
Labels

Comments

@sorah
Copy link
Collaborator

sorah commented Apr 27, 2010

OAuth対応について

問題: TwitterがBASIC認証非対応へ

TwitterがいよいよBASIC認証を打ち切るようです。 June 30, 2010にはBASICが使えなくなるのでそれまでにOAuthに対応しましょう。

カウントダウン: http://www.countdowntooauth.com/

対応

どうやって

対応はおそらくXAuthでかと思われます。

Tokenの保存・取得

これについてはLingrでの会話で決定しました。

Lingr room/termtter at April 27

ujihisa: つまり

ujihisa: スクリプト言語で問題なのではなくて

ujihisa: コードが人間にそのまま読めるほど平易なのが問題なわけですよね!

jugyo: そうですねー

ujihisa: (... 長いので省略
...)
たとえばこれ、Rubyのhello worldなんですが

jugyo: こ、これは読めない。。

ujihisa: rrencode 任意の文字列を、記号のみで生成されるRubyのコードに変換します

jugyo: ネタとしてもおもしろいし、これでいきましょうか

ujihisa: ですね

ujihisa: これだけでRubyKaigiで一本いけますね

(RubyKaigiいくぞーーーーーー)

というわけで ネタとしてもおもしろいのでrrencode を使用しトークンを隠蔽します!!!!!!!!!!

と、おもったけどsorahの手元のRuby1.9.1で動かなかったし、STDOUTへの出力なのでrrencodeはむかない。

http://github.com/sorah/sandbox/blob/master/ruby/ndkn.rb

は、どうですか?

計画

"GW中に進めます(キリッ" jugyoのlingr上での発言

というわけで、2010/6/30の一週間くらいまでにできるくらいでいいかな、と思います。

ToDo

  • spec (spec重要です。spec重要です。spec重要です。)
  • XAuth対応
  • consumer tokenをtwitterから取得(これはjugyoかな?)
  • tokenを隠蔽コミット
  • access token 取得メソッド
  • access token 保存できるようにする
  • access token 再取得などのコマンドを定義
  • パーティ<3

よろしくおねがいしあmす

@mattn
Copy link
Collaborator

mattn commented Apr 27, 2010

そもそもパスワード保存する事自体やめないと意味がないのでは?

@sorah
Copy link
Collaborator Author

sorah commented Apr 27, 2010

パスワードとは?
twitterのパスワードはそれ以降初回のみとなります。
oauth tokenは保存するしかありません。

@mattn
Copy link
Collaborator

mattn commented Apr 28, 2010

あー、パスワード消すのですね?rrencodeを使うと書いてあったのでてっきりパスワード保存し続けるものと思いました。

@sorah
Copy link
Collaborator Author

sorah commented Apr 28, 2010

OAuthのConsumer tokenを難読化します(Termtter::Crypt(難読化モジュール)を作ったのでそれを使います)。

@koichiro
Copy link
Collaborator

実装済み

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants