class Mongo::Auth::CR

Defines behavior for MongoDB-CR authentication.

@since 2.0.0 @deprecated 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.

@api private

Constants

MECHANISM

The authentication mechanism string.

@since 2.0.0

Public Instance Methods

login() click to toggle source

Log the user in on the current connection.

@return [ BSON::Document ] The document of the authentication response.

# File lib/mongo/auth/cr.rb, line 37
def login
  converse_2_step(connection, conversation)
end