Class: TwoPercent::ApplicationController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- TwoPercent::ApplicationController
show all
- Defined in:
- app/controllers/two_percent/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#authenticate ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/controllers/two_percent/application_controller.rb', line 12
def authenticate
result = instance_exec(&TwoPercent.config.authenticate)
return if result
render_scim_error(
status: :unauthorized,
scim_type: nil, detail: "Authentication failed"
)
end
|