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.
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/openid/consumer/idres.rb', line 51 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.
49 50 51 |
# File 'lib/openid/consumer/idres.rb', line 49 def endpoint @endpoint end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
49 50 51 |
# File 'lib/openid/consumer/idres.rb', line 49 def @message end |
Instance Method Details
#signed_fields ⇒ Object
62 63 64 |
# File 'lib/openid/consumer/idres.rb', line 62 def signed_fields signed_list.map {|x| 'openid.' + x} end |