Class OpenID::Server::OpenIDResponse
In: lib/openid/server.rb
Parent: Object

Object representing a response to an OpenIDRequest

Methods

Attributes

fields  [RW] 
request  [RW] 
signed  [RW] 

Public Class methods

request is a subclass of OpenIDRequest that this object should respond to.

Public Instance methods

Add an extra field to this response.

namespace
Extension namespace the field is in with no leading "openid.". For example, if you are adding a simple registration argument, you would pass ‘sreg’ as the namespace.

Same as OpenIDResponse.add_field, except that it accepts a Hash fields to be added as the fields argument.

Encode the response to kvform format.

Encode the response to a URL, suitable to be send via 302 redirect.

Returns a boolean saying whether or not this response requires signing.

Update the fields of this request with another OpenIDResponse, other.

OpenID responses can be sent back as a URL redirect or as a kvform reponse to a POST. This method returns a code describing how the response should be encoded, and return either OpenID::Server::ENCODE_URL or OpenID::Server::ENCODE_KVFORM.

[Validate]