Commit d5886465 authored by James Lopez's avatar James Lopez

fix specs

parent f5a69b09
module OauthApplications module OauthApplications
extend ActiveSupport::Concern extend ActiveSupport::Concern
prepend ::EE::OauthApplications prepend ::EE::Concerns::OauthApplications
included do included do
before_action :prepare_scopes, only: [:create, :update] before_action :prepare_scopes, only: [:create, :update]
......
module EE module EE
module OauthApplications module Concerns
extend ActiveSupport::Concern module OauthApplications
extend ActiveSupport::Concern
def log_audit_event def log_audit_event
AuditEventService.new(current_user, ::AuditEventService.new(current_user,
current_user, current_user,
action: :custom, action: :custom,
custom_message: 'OAuth access granted', custom_message: 'OAuth access granted',
ip_address: request.remote_ip) ip_address: request.remote_ip)
.for_user(@application.name).security_event .for_user(@application.name).security_event
end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment