twitterのbasic認証が今度こそ終わります
TRANSCRIPT
![Page 1: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/1.jpg)
2010年 9月 1日までにTwi tterのBasi c認証は終了します。それ以降、Twi tter API については、OAuth/xAuthを使わなければ利用できなくなります。
![Page 2: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/2.jpg)
というわけで
![Page 3: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/3.jpg)
のBasi c認証が今度こそ終わります
@Akira_Kito
![Page 4: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/4.jpg)
布教ではないですが時事ネタということでよろしくお願いします
![Page 5: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/5.jpg)
Twi tterが来月までにOAuth / xAuth に完全移行します
![Page 6: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/6.jpg)
http://countdowntooauth.com/
というかあと2日です
![Page 7: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/7.jpg)
Basi c認証のBOTは
全滅しますBOT書いてる人は準備OK?
![Page 8: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/8.jpg)
Twi tter APIBasi c認証の場合
![Page 9: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/9.jpg)
I Dと passwordをBase64 encodeして: で繋いでHTTPヘッダで送る
![Page 10: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/10.jpg)
•Base64 は可逆•wi reshark とかで覗き放題•I Dも passwordもダダ漏れ
インターネットこわい↓
![Page 11: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/11.jpg)
Twi tter APIOAuthの場合
![Page 12: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/12.jpg)
credenti al sとか共有鍵とかで
うまいことやる (RFC5849)
インターネットこわくない↓
Basi c認証なんかよりsecure
↓
![Page 13: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/13.jpg)
OAuthってなに?
![Page 14: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/14.jpg)
OAuthと書いて「おーおーす」らしい
![Page 15: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/15.jpg)
OAuthとは
ちょっとよくわかりませんね?
![Page 16: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/16.jpg)
こんな感じです
![Page 17: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/17.jpg)
OAuthの手順省略版xAuthというのもある
![Page 18: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/18.jpg)
ググる際には類似品にご注意
•xauth–xauth(1)–X authori ty f i l e uti l i ty–UNI Xコマンド
•XAuth–HTML5 Local Storage を使った認証プラットフォーム
–Twi tterでは使えません
![Page 19: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/19.jpg)
OAuthの自前実装は正直な話面倒なのでライブラリを使いましょう
![Page 20: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/20.jpg)
•C–l i bOAuth http://liboauth.sourceforge.net/
•Haskel l–hoauth http://hackage.haskell.org/package/hoauth
•Perl– Net::OAuth http://search.cpan.org/dist/Net-OAuth/
•Python–tweepy http://github.com/joshthecoder/tweepy
•Ruby–OAuth GEM http://oauth.rubyforge.org/
適当に選んだライブラリ
![Page 21: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/21.jpg)
ライブラリの力を借りて
乗るしかない
![Page 22: TwitterのBasic認証が今度こそ終わります](https://reader030.vdocuments.pub/reader030/viewer/2022020116/55a2b5901a28ab040d8b463d/html5/thumbnails/22.jpg)
この世界的
ビッグウェーブに!