Skip to content

Commit

Permalink
Merge pull request #15959 from jvlcek/bz1489596_aws_userid_caps
Browse files Browse the repository at this point in the history
[FINE] Do not downcase the amazon IAM username
  • Loading branch information
simaishi authored Sep 11, 2017
2 parents b62cd9e + 31cc021 commit 7dcc6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/models/authenticator/amazon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,9 @@ def aws_connect(access_key_id, secret_access_key, service = :IAM, proxy_uri = ni
:log_formatter => Aws::Log::Formatter.new(Aws::Log::Formatter.default.pattern.chomp)
)
end

def normalize_username(username)
username
end
end
end
4 changes: 2 additions & 2 deletions spec/models/authenticator/amazon_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'aws-sdk'

describe Authenticator::Amazon do
AWS_ROOT_USER_KEY = 'aws_root_key'
AWS_IAM_USER_KEY = 'aws_iam_key'
AWS_ROOT_USER_KEY = 'aws_root_key'.freeze
AWS_IAM_USER_KEY = 'AWS_IAM_KEY'.freeze

subject { Authenticator::Amazon.new(config) }

Expand Down

0 comments on commit 7dcc6ce

Please sign in to comment.