Class: OpenID::Consumer::IdResHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/openid/consumer/idres.rb

Overview

Handles an openid.mode=id_res response. This object is instantiated and used by the Consumer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, current_url, store = nil, endpoint = nil) ⇒ IdResHandler

Returns a new instance of IdResHandler.



51
52
53
54
55
56
57
58
59
60
# File 'lib/openid/consumer/idres.rb', line 51

def initialize(message, current_url, store=nil, endpoint=nil)
  @store = store # Fer the nonce and invalidate_handle
  @message = message
  @endpoint = endpoint
  @current_url = current_url
  @signed_list = nil

  # Start the verification process
  id_res
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



49
50
51
# File 'lib/openid/consumer/idres.rb', line 49

def endpoint
  @endpoint
end

#messageObject (readonly)

Returns the value of attribute message.



49
50
51
# File 'lib/openid/consumer/idres.rb', line 49

def message
  @message
end

Instance Method Details

#signed_fieldsObject



62
63
64
# File 'lib/openid/consumer/idres.rb', line 62

def signed_fields
  signed_list.map {|x| 'openid.' + x}
end