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
session_type[R]
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
from_message(unused_request)
click to toggle source
# File lib/openid/server.rb, line 185 def self.from_message(unused_request) return self.new end
new()
click to toggle source
Calls superclass method
OpenID::Server::BaseServerSession.new
# File lib/openid/server.rb, line 181 def initialize super('no-encryption', ['HMAC-SHA1', 'HMAC-SHA256']) end
Public Instance Methods
answer(secret)
click to toggle source
# File lib/openid/server.rb, line 189 def answer(secret) return {'mac_key' => Util.to_base64(secret)} end