Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

openid.ui.mode using rails' openid_authentication plugin

I'm using the openid_authentication plugin to login my users with openid.

On some pages (the one designed for mobile apps), I'd like to provide the openid.ui.mode = "popup" option so that the provider would display a lighter version of the login page.

Though, it appears the rack-openid gem (on which openid_authentication relies) filters the parameters provided, not allowing anything else than fields.

So doing the following :

authenticate_with_open_id(nil, {'openid.ui.mode' => 'popup'}) do |result|

Does not work.

like image 939
Damien MATHIEU Avatar asked Nov 08 '10 13:11

Damien MATHIEU


1 Answers

This might work:

authenticate_with_open_id( nil, {'optional' => {'openid.ui.mode' => 'popup'}})...

If that doesn't work, you can try another OpenID plugin with more features:

  • https://github.com/nbudin/devise_openid_authenticatable
  • https://github.com/intridea/omniauth
like image 71
bowsersenior Avatar answered Oct 17 '22 01:10

bowsersenior