Class: OpenID::Consumer::AssociationManager

Class | OpenID::Consumer::AssociationManager
In: | lib/openid/consumer/associationmanager.rb
Parent: | Object

An object that manages creating and storing associations for an OpenID provider endpoint

### Methods

create_associate_request create_session extract_association extract_expires_in extract_supported_association_type get_association get_openid1_session_type negotiate_association new request_association

### Public Class methods

create_session(session_type)
new(store, server_url, compatibility_mode=false, negotiator=nil)

### Protected Class methods

extract_expires_in(message)

### Public Instance methods

get_association()
negotiate_association()

### Protected Instance methods

create_associate_request(assoc_type, session_type)

Create an association request for the given assoc_type and session_type. Returns a pair of the association session object and the request message that will be sent to the server.

extract_association(assoc_response, assoc_session)

Attempt to extract an association from the response, given the association response message and the established association session.

extract_supported_association_type(server_error, assoc_type)
get_openid1_session_type(assoc_response)

Given an association response message, extract the OpenID 1.X session type. Returns the association type for this message

This function mostly takes care of the ‘no-encryption’ default behavior in OpenID 1.

If the association type is plain-text, this function will return ‘no-encryption‘

request_association(assoc_type, session_type)

Make and process one association request to this endpoint‘s OP endpoint URL. Returns an association object or nil if the association processing failed. Raises ServerError when the remote OpenID server returns an error.

[Validate]