Class: OpenID::Consumer::IdResHandler
- Inherits:
-
Object
- Object
- OpenID::Consumer::IdResHandler
- 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
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, current_url, store = nil, endpoint = nil) ⇒ IdResHandler
constructor
A new instance of IdResHandler.
- #signed_fields ⇒ Object
Constructor Details
#initialize(message, current_url, store = nil, endpoint = nil) ⇒ IdResHandler
Returns a new instance of IdResHandler.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/openid/consumer/idres.rb', line 41 def initialize(, current_url, store = nil, endpoint = nil) @store = store # Fer the nonce and invalidate_handle @message = @endpoint = endpoint @current_url = current_url @signed_list = nil # Start the verification process id_res end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
39 40 41 |
# File 'lib/openid/consumer/idres.rb', line 39 def endpoint @endpoint end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
39 40 41 |
# File 'lib/openid/consumer/idres.rb', line 39 def @message end |
Instance Method Details
#signed_fields ⇒ Object
52 53 54 |
# File 'lib/openid/consumer/idres.rb', line 52 def signed_fields signed_list.map { |x| "openid." + x } end |