Class: Fortifier::AuthUsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/fortifier/auth_users_controller.rb

Instance Method Summary collapse

Instance Method Details

#auth_users_by_uuidsObject



93
94
95
# File 'app/controllers/fortifier/auth_users_controller.rb', line 93

def auth_users_by_uuids
  render json: api.auth_users_by_uuids(params[:uuids])
end

#authenticateObject



10
11
12
13
14
15
16
17
# File 'app/controllers/fortifier/auth_users_controller.rb', line 10

def authenticate
  results = api.authenticate(params["login"], 
                             params["password"], 
                             request.env["HTTP_USER_AGENT"], 
                             request.ip)

  render json: results
end

#authenticate_batch_ssoObject



28
29
30
31
32
33
34
35
# File 'app/controllers/fortifier/auth_users_controller.rb', line 28

def authenticate_batch_sso
  results = api.authenticate_batch_sso(params["account-id"], 
                                       params["user-token"], 
                                       request.env["HTTP_USER_AGENT"], 
                                       request.ip)

  render json: results
end

#authenticate_on_demand_ssoObject



37
38
39
40
41
42
43
# File 'app/controllers/fortifier/auth_users_controller.rb', line 37

def authenticate_on_demand_sso
  results = api.authenticate_on_demand_sso(params["password"], 
                                           request.env["HTTP_USER_AGENT"], 
                                           request.ip)

  render json: results
end

#authenticate_uuidObject



19
20
21
22
23
24
25
26
# File 'app/controllers/fortifier/auth_users_controller.rb', line 19

def authenticate_uuid
  results = api.authenticate_uuid(params["uuid"], 
                                  params["password"], 
                                  request.env["HTTP_USER_AGENT"], 
                                  request.ip)

  render json: results
end

#batch_updateObject



49
50
51
# File 'app/controllers/fortifier/auth_users_controller.rb', line 49

def batch_update
  render json: api.batch_update(params['user_info'])
end

#change_passwordObject



61
62
63
# File 'app/controllers/fortifier/auth_users_controller.rb', line 61

def change_password
  render json: api.change_password(params[:auth_user])
end

#createObject



53
54
55
# File 'app/controllers/fortifier/auth_users_controller.rb', line 53

def create
  render json: api.create(params[:auth_user])
end

#create_password_reset_tokenObject



69
70
71
# File 'app/controllers/fortifier/auth_users_controller.rb', line 69

def create_password_reset_token
  render json: api.create_password_reset_token(params[:email])
end

#find_auth_userObject



81
82
83
# File 'app/controllers/fortifier/auth_users_controller.rb', line 81

def find_auth_user
  render json: api.find_auth_user(params[:auth_user].keys.first, params[:auth_user].values.first)
end

#find_auth_user_emailsObject



85
86
87
# File 'app/controllers/fortifier/auth_users_controller.rb', line 85

def find_auth_user_emails
  render json: api.find_auth_user_emails(params[:uuids])
end


73
74
75
# File 'app/controllers/fortifier/auth_users_controller.rb', line 73

def link
  render json: api.link(params[:auth_user])
end

#reset_passwordObject



65
66
67
# File 'app/controllers/fortifier/auth_users_controller.rb', line 65

def reset_password
  render json: api.reset_password(params[:auth_user])
end

#search_for_auth_usersObject



89
90
91
# File 'app/controllers/fortifier/auth_users_controller.rb', line 89

def search_for_auth_users
  render json: api.search_for_auth_users(safe_params)
end


77
78
79
# File 'app/controllers/fortifier/auth_users_controller.rb', line 77

def unlink
  render json: api.unlink(params[:auth_user])
end

#updateObject



57
58
59
# File 'app/controllers/fortifier/auth_users_controller.rb', line 57

def update
  render json: api.update(params[:auth_user])
end

#validateObject



45
46
47
# File 'app/controllers/fortifier/auth_users_controller.rb', line 45

def validate
  render json: api.validate(params[:auth_user])
end