Class: Fortifier::AuthUsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Fortifier::AuthUsersController
- Defined in:
- app/controllers/fortifier/auth_users_controller.rb
Instance Method Summary collapse
- #auth_users_by_uuids ⇒ Object
- #authenticate ⇒ Object
- #authenticate_batch_sso ⇒ Object
- #authenticate_on_demand_sso ⇒ Object
- #authenticate_uuid ⇒ Object
- #batch_update ⇒ Object
- #change_password ⇒ Object
- #create ⇒ Object
- #create_password_reset_token ⇒ Object
- #find_auth_user ⇒ Object
- #find_auth_user_emails ⇒ Object
- #link ⇒ Object
- #reset_password ⇒ Object
- #search_for_auth_users ⇒ Object
- #unlink ⇒ Object
- #update ⇒ Object
- #validate ⇒ Object
Instance Method Details
#auth_users_by_uuids ⇒ Object
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 |
#authenticate ⇒ Object
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_sso ⇒ Object
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_sso ⇒ Object
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_uuid ⇒ Object
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_update ⇒ Object
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_password ⇒ Object
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 |
#create ⇒ Object
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_token ⇒ Object
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_user ⇒ Object
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_emails ⇒ Object
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 |
#link ⇒ Object
73 74 75 |
# File 'app/controllers/fortifier/auth_users_controller.rb', line 73 def link render json: api.link(params[:auth_user]) end |
#reset_password ⇒ Object
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_users ⇒ Object
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 |
#unlink ⇒ Object
77 78 79 |
# File 'app/controllers/fortifier/auth_users_controller.rb', line 77 def unlink render json: api.unlink(params[:auth_user]) end |
#update ⇒ Object
57 58 59 |
# File 'app/controllers/fortifier/auth_users_controller.rb', line 57 def update render json: api.update(params[:auth_user]) end |
#validate ⇒ Object
45 46 47 |
# File 'app/controllers/fortifier/auth_users_controller.rb', line 45 def validate render json: api.validate(params[:auth_user]) end |