Class: Mongo::Auth::Aws

Inherits:
Base
  • Object
show all
Defined in:
lib/mongo/auth/aws.rb,
lib/mongo/auth/aws/request.rb,
lib/mongo/auth/aws/credentials.rb,
lib/mongo/auth/aws/conversation.rb,
lib/mongo/auth/aws/credentials_cache.rb,
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 'lib/mongo/auth/aws.rb', line 26

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