node.js + express でTwitter認証をしてみました。今回は取得した情報をセッションに格納していますが、これを MySQL や MongoDB に保存すれば「Twitterでログイン」みたいな事は簡単に出来そうですね。 下記環境で動作確認しています。 Node.js v0.4.8 express v2.3.11 jade v0.12.1 oauth v0.9.0 実装する# 必要なモジュールを npm でインストールします。 // This program is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it // and/or modify it under the terms of th
![node.js + expressでTwitter認証](https://cdn-ak-scissors.b.st-hatena.com/image/square/664033f87bdc379cf0578c7ade00269d8d4144f6/height=288;version=1;width=512/https%3A%2F%2Fblog.dakatsuka.jp%2Fimages%2Fcard.png)