Sha256: f00f170aea8b6db055f7f2a01d27ee8b7557a13ef4a86eea95cc8370503a4522

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

module Fog
  module AWS
    class STS
      class Real

        require 'fog/aws/parsers/sts/get_session_token'

        def get_federation_token(name, policy, duration=43200)
          request({
            'Action'          => 'GetFederationToken',
            'Name'            => name,
            'Policy'          => MultiJson.encode(policy),
            'DurationSeconds' => duration,
            :idempotent       => true,
            :parser           => Fog::Parsers::AWS::STS::GetSessionToken.new
          })
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sts/get_federation_token.rb
michiels-fog-1.3.1 lib/fog/aws/requests/sts/get_federation_token.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/sts/get_federation_token.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.3.1 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.3.0 lib/fog/aws/requests/sts/get_federation_token.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.2.0 lib/fog/aws/requests/sts/get_federation_token.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/sts/get_federation_token.rb