Class: AWSUDO::IdentityProviders::Adfs

Inherits:
AWSUDO::IdentityProvider show all
Defined in:
lib/awsudo/identity_providers/adfs.rb

Instance Attribute Summary

Attributes inherited from AWSUDO::IdentityProvider

#idp_login_url, #logger, #password, #saml_provider_name, #username

Instance Method Summary collapse

Methods inherited from AWSUDO::IdentityProvider

#assume_role, #get_saml_response, #initialize, new_from_config, sts

Constructor Details

This class inherits a constructor from AWSUDO::IdentityProvider

Instance Method Details

#saml_requestObject



8
9
10
11
12
13
# File 'lib/awsudo/identity_providers/adfs.rb', line 8

def saml_request
  uri = URI.parse()
  req = Net::HTTP::Post.new(uri.request_uri)
  req.set_form_data({'username' => username, 'password' => password})
  req
end