Class: OpenID::Server::PlainTextServerSession
- Inherits:
-
BaseServerSession
- Object
- BaseServerSession
- OpenID::Server::PlainTextServerSession
- Defined in:
- lib/openid/server.rb
Overview
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>
Instance Attribute Summary collapse
-
#session_type ⇒ Object
readonly
The session_type for this association session.
Class Method Summary collapse
Instance Method Summary collapse
- #answer(secret) ⇒ Object
-
#initialize ⇒ PlainTextServerSession
constructor
A new instance of PlainTextServerSession.
Methods inherited from BaseServerSession
Constructor Details
#initialize ⇒ PlainTextServerSession
181 182 183 |
# File 'lib/openid/server.rb', line 181 def initialize super("no-encryption", %w[HMAC-SHA1 HMAC-SHA256]) end |
Instance Attribute Details
#session_type ⇒ Object (readonly)
The session_type for this association session. There is no type defined for plain-text in the OpenID specification, so we use ‘no-encryption’.
179 180 181 |
# File 'lib/openid/server.rb', line 179 def session_type @session_type end |
Class Method Details
.from_message(_unused_request) ⇒ Object
185 186 187 |
# File 'lib/openid/server.rb', line 185 def self.(_unused_request) new end |