SecurityDirectives

csw.aas.http.SecurityDirectives
See theSecurityDirectives companion class

Factory for csw.aas.http.SecurityDirectives instances

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(config: Config, locationService: LocationService)(implicit ec: ExecutionContext): SecurityDirectives

Creates instance of csw.aas.http.SecurityDirectives using provided configurations and resolves auth server url using location service

Creates instance of csw.aas.http.SecurityDirectives using provided configurations and resolves auth server url using location service

Value parameters

config

Config object provided

locationService

LocationService instance used to resolve auth server url (blocking call)

Attributes

def apply(config: Config, locationService: LocationService, enableAuth: Boolean)(implicit ec: ExecutionContext): SecurityDirectives

Creates instance of csw.aas.http.SecurityDirectives using provided configurations and resolves auth server url using location service

Creates instance of csw.aas.http.SecurityDirectives using provided configurations and resolves auth server url using location service

Value parameters

config

Config object provided

enableAuth

It will ignore disabled key from config. This can be used by cli apps which wants to enable/disable auth based on whether they are started with auth enabled or auth disabled rather than relying on config

locationService

LocationService instance used to resolve auth server url (blocking call)

Attributes

def authDisabled(config: Config)(implicit ec: ExecutionContext): SecurityDirectives

Creates instance of csw.aas.http.SecurityDirectives with auth disabled

Creates instance of csw.aas.http.SecurityDirectives with auth disabled

Attributes