• Type: Sub-task
    • Resolution: Fixed
    • Priority: Unknown
    • 6.4.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • None
    • v5.x
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... AWS user
      I want... connect with key and secret and without token

      According to spec:

      Users MAY have obtained temporary credentials through an AssumeRole request. If so, then in addition to a username and password, users MAY also provide an AWS_SESSION_TOKEN as a mechanism_property.
      

      The AWS_SESSION_TOKEN is optional, so we should not check for it when making temp credentials: https://github.com/mongodb/node-mongodb-native/blob/main/src/cmap/auth/mongodb_aws.ts

      Acceptance Criteria

      Implementation Requirements

      • Remove check that creds.Token is present in makeTempCredentials()

      Testing Requirements

      • Verify that there is no new MongoMissingCredentialsError('Could not obtain temporary MONGODB-AWS credentials') exception in case of a missing token

              Assignee:
              Alena Khineika
              Reporter:
              Alena Khineika
              Durran Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: