最近は他のサービスを使ったログインが主流ですよね。開発者向けのサービスQiitaでもTwitter/Githubをログインに使用してますね。 Mojoliciousで使うために今回、Amon2プラングイン由来?のMojolicious::Plugin::Web::Authを使ってみました。セッションを使うところは @yusukebeさんのPerlのWAFはMojolicious推しな件とそのノウハウのエントリとの合わせ技です。 ポイントはTwitterの場合、on_finishedの第4引数のハッシュがReturn valueを持っている、Githubのときは、token_secretはなくて、第三引数にReturn valueがあることでしょうか。詳しくはprint Dumperしてみてください^^