Class: OpenID::Consumer::IdResHandler

Class | OpenID::Consumer::IdResHandler
In: | lib/openid/consumer/idres.rb
Parent: | Object

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

### Methods

check_auth check_for_fields check_nonce check_signature create_check_auth_request discover_and_verify fetch id_res new openid_namespace process_check_auth_response server_url signed_fields signed_list verify_discovered_services verify_discovery_results verify_discovery_results_openid1 verify_discovery_results_openid2 verify_discovery_single verify_return_to verify_return_to_args verify_return_to_base

### Attributes

endpoint | [R] |
message | [R] |

### Public Class methods

new(message, current_url, store=nil, endpoint=nil)

### Public Instance methods

signed_fields()

### Protected Instance methods

check_auth()
check_for_fields()
check_nonce()
check_signature()

Raises ProtocolError if the signature is bad

create_check_auth_request()
discover_and_verify(claimed_id, to_match_endpoints)

Given an endpoint object created from the information in an OpenID response, perform discovery and verify the discovery results, returning the matching endpoint that is the result of doing that discovery.

fetch(field, default=NO_DEFAULT)
id_res()

This method will raise ProtocolError unless the request is a valid id_res response. Once it has been verified, the methods ‘endpoint’, ‘message’, and ‘signed_fields’ contain the verified information.

openid_namespace()
process_check_auth_response(response)

Process the response message from a check_authentication request, invalidating associations if requested.

server_url()
signed_list()
verify_discovered_services(claimed_id, services, to_match_endpoints)
verify_discovery_results()
verify_discovery_results_openid1()
verify_discovery_results_openid2()
verify_discovery_single(endpoint, to_match)
verify_return_to()
verify_return_to_args(msg_return_to)
verify_return_to_base(msg_return_to)

[Validate]