Class: Devise::Strategies::OpenidAuthenticatable

Inherits:
Authenticatable
  • Object
show all
Defined in:
lib/devise_openid_authenticatable/strategy.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!Object



10
11
12
13
14
15
16
17
18
# File 'lib/devise_openid_authenticatable/strategy.rb', line 10

def authenticate!
  logger.debug("Authenticating with OpenID for mapping #{mapping.to}")

  if provider_response?
    handle_response!
  else
    handle_missing_response!
  end
end

#store?Boolean

CSRF won’t be able to be verified on returning from the OpenID server, so we will bypass that check for this strategy

Returns:

  • (Boolean)


21
22
23
# File 'lib/devise_openid_authenticatable/strategy.rb', line 21

def store?
  true
end

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/devise_openid_authenticatable/strategy.rb', line 6

def valid?
  valid_mapping? && ( provider_response? || identity_param? )
end