このBlogは移転しました。今後は aish.dev を御覧ください。

MoinMoinでOpenIDを使う

OpenID専用にしてしまうなら、wikiconfig.pyを

from MoinMoin.auth.openidrp import OpenIDAuth
auth = [MoinAuth(), OpenIDAuth()]
cookie_lifetime = (2,12)

普通のログインも併用するなら

from MoinMoin.auth import MoinAuth
from MoinMoin.auth.openidrp import OpenIDAuth
auth = [MoinAuth(), OpenIDAuth()]
cookie_lifetime = (2,12)

とする。

また、

openidrp_allowed_op = ['https://www.google.com/accounts/o8/id']

とすると、Googleのアカウントを選択してログインできる。