Class: OpenID::Server::AssociateRequest

Class | OpenID::Server::AssociateRequest
In: | lib/openid/server.rb
Parent: | OpenIDRequest

A request to establish an association.

See OpenID Specs, Section 8: Establishing Associations <openid.net/specs/openid-authentication-2_0-12.html#associations>

### Methods

answer answer_unsupported from_message new

### Attributes

assoc_type | [RW] | The type of association. Supported values include HMAC-SHA256 and HMAC-SHA1
session | [RW] | An object that knows how to handle association requests of a certain type.

### Public Class methods

from_message(message, op_endpoint=UNUSED)

Construct me from an OpenID Message.

new(session, assoc_type)

Construct me.

The session is assigned directly as a class attribute. See my class documentation for its description.

### Public Instance methods

answer(assoc)

Respond to this request with an association.

assoc: | The association to send back.

Returns a response with the association information, encrypted to the consumer‘s public key if appropriate.

answer_unsupported(message, preferred_association_type=nil, preferred_session_type=nil)

Respond to this request indicating that the association type or association session type is not supported.

[Validate]