4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'app/models/fortifier/auth_steps/initialize_batch_sso_auth_attempt.rb', line 4
def self.invoke(params)
token = params[:token]
auth_user = Fortifier::AuthUser.authenticate_batch_sso(params[:account_uuid], token) unless token.blank?
auth_log = Fortifier::AuthLog.create(auth_user: auth_user,
user_agent: params["HTTP_USER_AGENT"],
remote_addr: params["IP"],
status: (auth_user ? 1 : 0))
params.merge auth_user: auth_user,
auth_log: auth_log,
auth_msg: auth_user ? nil : Messaging::NO_AUTH_USER
end
|