Class: Identity::Provider::IdentityServiceProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/identity.rb

Instance Method Summary collapse

Constructor Details

#initialize(handler) ⇒ IdentityServiceProvider

Returns a new instance of IdentityServiceProvider.



59
60
61
# File 'lib/identity.rb', line 59

def initialize(handler) 
  @handler = handler
end

Instance Method Details

#authenticate(name, remote_host, parameters) ⇒ Object



68
69
70
71
# File 'lib/identity.rb', line 68

def authenticate(name, remote_host, parameters)
  xml = @handler.make_request 'authenticate', { :name => name, :client_ip => remote_host }.merge(parameters)
  return AuthenticationResult.new(xml)
end

#enroll(name, remote_host, parameters) ⇒ Object



78
79
80
81
# File 'lib/identity.rb', line 78

def enroll(name, remote_host, parameters)
  xml = @handler.make_request 'enroll', { :name => name, :client_ip => remote_host }.merge(parameters)
  return EnrollmentResult.new(xml)
end

#pre_authenticate(name, remote_host) ⇒ Object



63
64
65
66
# File 'lib/identity.rb', line 63

def pre_authenticate(name, remote_host) 
  xml = @handler.make_request 'preauthenticate', { :name => name, :client_ip => remote_host }
  return AuthenticationResult.new(xml)
end

#pre_enroll(name, remote_host) ⇒ Object



73
74
75
76
# File 'lib/identity.rb', line 73

def pre_enroll(name, remote_host)
  xml = @handler.make_request 'preenroll', { :name => name, :client_ip => remote_host }
  return EnrollmentResult.new(xml)
end