Displaying 3 results from an estimated 3 matches for "authenticate_with_open_id".
2008 Apr 20
2
open_id_authentication - authenticate_with_open_id
I''m using the open_id_authentication plugin just like the README
says. However, when I submit my openid_url, the
authenticate_with_open_id method gives me the error below.
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:
150:in `+''
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:
150:in `requested_url''
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:
146:in...
2008 Aug 30
3
Working with sessions in beast forum
..., :expires =>
1.year.from_now.utc}
open_id_authentication
else
cookies[:use_open_id] = {:value => ''0'', :expires =>
1.year.ago.utc}
password_authentication params[:login], params[:password]
end
end
protected
def open_id_authentication
authenticate_with_open_id params[:openid_url] do |result,
openid_url|
if result.successful?
if self.current_user = User.find_by_openid_url(openid_url)
successful_login
else
failed_login "Sorry, no user by the identity URL
{openid_url} exists"[:openid_no_user_mess...
2008 May 27
6
case...when statement bug when using openid_authentication?
...9;'m following the README file included
by DHH, so I wrote this method in my SessionsController:
def open_id_authentication(identity_url)
# Pass optional :required and :optional keys to specify what sreg
fields you want.
# Be sure to yield registration, a third argument in the
#authenticate_with_open_id block.
authenticate_with_open_id(identity_url,
:required => [ :nickname, :email ],
:optional => :fullname) do |status, identity_url,
registration|
logger.debug "Received status #{status.inspect}"
if (status === :successful)
log...