Sha256: 61afa13aff84ad751446847db9c31cd627c5f7c7c9df43e7ca0ae48f9a78b62b

Contents?: true

Size: 437 Bytes

Versions: 14

Compression:

Stored size: 437 Bytes

Contents

require "aws-sdk-core"
require "aws_mfa_secure"

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

14 entries across 14 versions & 1 rubygems

Version Path
aws-mfa-secure-0.4.4 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.4.3 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.4.2 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.4.1 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.4.0 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.8 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.7 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.6 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.5 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.4 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.3 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.2 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.1 lib/aws_mfa_secure/ext/aws.rb
aws-mfa-secure-0.3.0 lib/aws_mfa_secure/ext/aws.rb