class OpenID::Server::PlainTextServerSession
An object that knows how to handle association requests with no session type.
See OpenID Specs, Section 8: Establishing Associations <openid.net/specs/openid-authentication-2_0-12.html#associations>
Attributes
The session_type for this association session. There is no type defined for plain-text in the OpenID specification, so we use ‘no-encryption’.
Public Class Methods
Source
# File lib/openid/server.rb, line 185 def self.from_message(unused_request) return self.new end
Source
# File lib/openid/server.rb, line 181 def initialize super('no-encryption', ['HMAC-SHA1', 'HMAC-SHA256']) end
Calls superclass method
OpenID::Server::BaseServerSession::new
Public Instance Methods
Source
# File lib/openid/server.rb, line 189 def answer(secret) return {'mac_key' => Util.to_base64(secret)} end