first version that works with rails_openid example