Class: RazorRisk::Cassini::Applications::Microservices::Login::LoginApp

Inherits:
SecurableMicroservice
  • Object
show all
Includes:
Pantheios, RESTFramework::RouteVerbDispatch, RouteVerbAdaptors::Login, RazorRisk::Cassini::Authorisation::SecurityModelHelpers, RazorRisk::Core::Diagnostics::Logger, Razor::Connectivity::Razor3, Razor::Connectivity::Razor3::EntityConnectors
Defined in:
lib/razor_risk/cassini/applications/microservices/login/app.rb

Overview

Razor Web Sercies Login Microservice.

Constant Summary collapse

FULL_DESIGNATION =

Microservice long name.

'Login'
SHORT_DESIGNATION =

Microservice short name.

'login'
SERVICE_TYPE =

Service type.

:microservice
HTTP_ACCEPTS =

Supported Content Types.

[
    'application/xml',
    'text/xml',
    'application/json',
    'text/plain',
    '*/*'
]
PROGRAM_FEATURES =

Supported features, used for generating CLI options.

{
    has_web_server:         true,
    has_host_and_port:      true,
    has_razor_connectivity: true,
    authentication:         true,
    copyright_year:         2017,
}

Class Method Summary collapse

Class Method Details

.on_init_service(options) ⇒ Object

Executed when the mircoservice is initialized.

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (options):

  • :razor_requester (#send_request)

    The Razor Requester to be used to send requests to the Razor application.

  • :message_map (Hash)

    The message map used to route razor requests.



127
128
129
130
131
132
133
134
135
136
# File 'lib/razor_risk/cassini/applications/microservices/login/app.rb', line 127

def self.on_init_service options

    trace ParamNames[ :options ], options

    check_option options, :razor_requester
    check_option options, :message_map, type: MessageMap, allow_nil: true

    set :razor_requester, options[:razor_requester]
    set :message_map, (options[:message_map] || MessageMap::DefaultInstance)
end