Class: Mongo::Auth::Aws

Inherits:
Base
  • Object
show all
Defined in:
build/ruby-driver-v2.19/lib/mongo/auth/aws.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/request.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials_cache.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials_retriever.rb

Overview

Since:

  • 2.0.0

Defined Under Namespace

Classes: Conversation, Credentials, CredentialsCache, CredentialsNotFound, CredentialsRetriever, Request

Constant Summary collapse

MECHANISM =

Since:

  • 2.0.0

'MONGODB-AWS'.freeze

Instance Attribute Summary

Attributes inherited from Base

#connection, #user

Instance Method Summary collapse

Methods inherited from Base

#conversation, #initialize

Constructor Details

This class inherits a constructor from Mongo::Auth::Base

Instance Method Details

#loginBSON::Document

Log the user in on the current connection.

Returns:

  • (BSON::Document)

    The document of the authentication response.

Since:

  • 2.0.0



26
27
28
29
30
31
# File 'build/ruby-driver-v2.19/lib/mongo/auth/aws.rb', line 26

def 
  converse_2_step(connection, conversation)
rescue StandardError
  CredentialsCache.instance.clear
  raise
end