Sha256: 2d1d5d23f570dfea340428e7bb8ee82d6b9e2542f20859c97863c59e58a05cc8

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

require "aws-sdk-core"

module AwsMfaCredentials
  def initialize(*)
    credentials = AwsMfaSecure::Credentials.instance
    if credentials.set?
      @access_key_id = credentials.access_key_id
      @secret_access_key = credentials.secret_access_key
      @session_token = credentials.session_token
    else
      super
    end
  end
end

module Aws
  class Credentials
    prepend AwsMfaCredentials
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-mfa-secure-0.2.0 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.1.0 lib/aws_mfa_secure/ext/aws.rb