Sha256: 225151b8368bbcd2d46b8c58d097fd5214b77963244e542a6df06fa790bd07d9

Contents?: true

Size: 561 Bytes

Versions: 38

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'          => Fog::JSON.encode(policy),
            'DurationSeconds' => duration,
            :idempotent       => true,
            :parser           => Fog::Parsers::AWS::STS::GetSessionToken.new
          })
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 11 rubygems

Version Path
gapinc-fog-1.12.1.2.1 lib/fog/aws/requests/sts/get_federation_token.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.15.0 lib/fog/aws/requests/sts/get_federation_token.rb
gapinc-fog-1.14.0 lib/fog/aws/requests/sts/get_federation_token.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.14.0 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.13.0 lib/fog/aws/requests/sts/get_federation_token.rb
gapinc-fog-1.12.1.2 lib/fog/aws/requests/sts/get_federation_token.rb
gapinc-fog-1.12.1.1 lib/fog/aws/requests/sts/get_federation_token.rb
gapinc-fog-1.12.1a lib/fog/aws/requests/sts/get_federation_token.rb
gapinc-fog-1.12.1 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.12.1 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.12.0 lib/fog/aws/requests/sts/get_federation_token.rb
hpfog-0.0.20 lib/fog/aws/requests/sts/get_federation_token.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/sts/get_federation_token.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/sts/get_federation_token.rb
fog-nirvanix-1.8.2 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.11.1 lib/fog/aws/requests/sts/get_federation_token.rb
fog-1.11.0 lib/fog/aws/requests/sts/get_federation_token.rb
fog-nirvanix-1.8.1 lib/fog/aws/requests/sts/get_federation_token.rb