Class: OpenID::SReg::Response

Class | OpenID::SReg::Response
In: | lib/openid/extensions/sreg.rb
Parent: | Extension

Represents the data returned in a simple registration response inside of an OpenID id_res response. This object will be created by the OpenID server, added to the id_res response object, and then extracted from the id_res message by the Consumer.

### Methods

[] empty? extract_response from_success_response get_extension_args new

### Attributes

data | [R] |
ns_uri | [R] |

### Public Class methods

extract_response(request, data)

Take a Request and a hash of simple registration values and create a Response object containing that data.

from_success_response(success_response, signed_only = true)

Create an Response object from an OpenID::Consumer::SuccessResponse from consumer.complete If you set the signed_only parameter to false, unsigned data from the id_res message from the server will be processed.

new(data = {}, ns_uri=NS_URI)

### Public Instance methods

[](field_name)

Read-only hashlike interface. Raises an exception if the field name is bad

empty?()
get_extension_args()

Get the fields to put in the simple registration namespace when adding them to an id_res message.

[Validate]