Method: Mongo::Auth::Scram#initialize
- Defined in:
- lib/mongo/auth/scram.rb
#initialize(user, connection, **opts) ⇒ Scram
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the Scram authenticator.
40 41 42 43 44 |
# File 'lib/mongo/auth/scram.rb', line 40 def initialize(user, connection, **opts) super @speculative_auth_client_nonce = opts[:speculative_auth_client_nonce] @speculative_auth_result = opts[:speculative_auth_result] end |