Class: RazorRisk::Cassini::Applications::SecuredMicroservice

Inherits:
SecurableMicroservice show all
Includes:
RazorRisk::Core::Diagnostics::Logger
Defined in:
lib/razor_risk/cassini/applications/secured_microservice.rb

Overview

A refinement of the SecurableMicroservice class that checks authorisation for every request (in the before handler) and exposes the obtained credentials (in an authentication scheme-dependent form) in the credentials attribute

Instance Attribute Summary collapse

Method Summary

Methods inherited from SecurableMicroservice

init_service, secret, #secret

Methods inherited from Microservice

define_catch_all_handlers, full_description, init_base_service, run!

Instance Attribute Details

#credentials ⇒ Object (readonly)

Returns the value of attribute credentials.



51
52
53
# File 'lib/razor_risk/cassini/applications/secured_microservice.rb', line 51

def credentials
  @credentials
end