Yesod is a terrific framework for web applications in Haskell. It has many, many built-in features. One of them is that there’s nice support for authentication and authorization. In this post I’m interested in talking about how you could write your authorization code such that it’s harder to make mistakes. As shown on the recent example of creating a blog web app, Yesod’s approach to authorizat
日々のすきをみてドン亀のごときペースで Haskell の勉強をしているのですが、入門書片手に学ぶのも飽きてきたので、実際になんか作ってみようとしています。 そこで Haskell の Web アプリケーションフレームワーク「Yesod」に挑戦しています。 Yesod はデフォルト状態(プロジェクトを作成直後の状態)ですでにログイン認証の仕組みが使えるようになっているのですが、この認証方式が Google の仕組みを使う一種のシングルサインオン方式になっているのです。これはこれで技術的に興味深いのですが、しかしじゃあ実際にどれぐらい使うんだというと、実案件ではそうそう使うものではないと思います。実際によく使う方式といえばやはり DB にユーザ名とパスワードを保存しておき、入力値がそれにマッチするかを見る方式が多いのではないでしょうか? Yesod には標準で Yesod-Auth という
0.0.0, 0.0.1, 0.2.0, 0.2.1, 0.4.0, 0.4.0.1, 0.6.0, 0.6.0.1, 0.6.0.2, 0.6.2, 0.6.3, 0.6.3.1, 0.6.4, 0.6.5, 0.6.6, 0.6.6.1, 0.7.0, 0.7.1, 0.7.2, 0.7.2.1, 0.7.2.2, 0.7.2.3, 0.7.2.4, 0.8.0, 0.8.0.1, 0.8.1, 0.8.2, 0.8.2.1, 0.8.2.2, 0.9.0, 0.9.0.1, 0.9.0.2, 0.9.1, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.1.4, 0.9.1.5, 0.9.1.6, 0.9.1.7, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.3, 0.9.3.1, 0.10.1, 0.10.2, 0.10.2.1, 0.10.2.2, 0
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く