Class: Mongo::Auth::CR::Conversation Deprecated Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Mongo::Auth::ConversationBase
|
Defined in: | lib/mongo/auth/cr/conversation.rb |
Overview
MONGODB-CR authentication mechanism is deprecated as of MongoDB 3.6. Support for it in the Ruby driver will be removed in driver version 3.0. Please use SCRAM instead.
Defines behavior around a single MONGODB-CR conversation between the client and server.
Constant Summary
-
LOGIN =
The login message base.
{ authenticate: 1 }.freeze
Class Method Summary
::Mongo::Auth::ConversationBase
- Inherited
.new | Create the new conversation. |
Instance Attribute Summary
- #database ⇒ String readonly Internal use only
- #nonce ⇒ String readonly Internal use only
::Mongo::Auth::ConversationBase
- Inherited
Instance Method Summary
-
#continue(reply_document, connection) ⇒ Protocol::Message
Internal use only
Continue the
::Mongo::Auth::CR
conversation. -
#start(connection) ⇒ Protocol::Message
Internal use only
Start the
::Mongo::Auth::CR
conversation.
::Mongo::Auth::ConversationBase
- Inherited
#build_message, | |
#speculative_auth_document | Returns the hash to provide to the server in the handshake as value of the speculativeAuthenticate key. |
#validate_external_auth_source |
Instance Attribute Details
#database ⇒ String
(readonly)
# File 'lib/mongo/auth/cr/conversation.rb', line 38
attr_reader :database
#nonce ⇒ String
(readonly)
# File 'lib/mongo/auth/cr/conversation.rb', line 41
attr_reader :nonce
Instance Method Details
#continue(reply_document, connection) ⇒ Protocol::Message
Continue the ::Mongo::Auth::CR
conversation. This sends the client final message to the server after setting the reply from the previous server communication.
#start(connection) ⇒ Protocol::Message
Start the ::Mongo::Auth::CR
conversation. This returns the first message that needs to be sent to the server.