Sha256: 1ac177f8f631b43bd44dd4561587ab96124e906aa4fe4dbb2ba746cad9ca6680
Contents?: true
Size: 982 Bytes
Versions: 6
Compression:
Stored size: 982 Bytes
Contents
require 'rubygems' require 'soap/wsdlDriver' # require 'savon' # require 'soap4r' require 'pp' # require 'aws/s3' # will add in later version require 'yaml' class Frostale attr_accessor :emailaddress, :password, :role, :groups, :wdsl, :isAuth def initialize(emailaddress, password, group, ldap_uri) @mldap_uri = ldap_uri @wdsl = nil begin @wdsl = SOAP::WSDLDriverFactory.new(@mldap_uri) rescue => e e.message end @emailaddress = emailaddress @password = password @groups = group end def authenticate soap = @wdsl.create_rpc_driver # TODO: figure out how to make the params below dynamic response = soap.AuthenticateUser( :emailaddress => @emailaddress, :password => @password, :admins => @groups, :editors => '', :authors => '', :contributors => '', :subscribers => '' ) soap.reset_stream @isAuth = response.isAuthenticated @role = response.role end end # end class
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
frostale-1.0.0 | lib/frostale.rb |
frostale-0.0.10 | lib/frostale.rb |
frostale-0.0.8 | lib/frostale.rb |
frostale-0.0.6 | lib/frostale.rb |
frostale-0.0.5 | lib/frostale.rb |
frostale-0.0.4 | lib/frostale.rb |