Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SecurityConfig

label

COMMON

interface

SecurityConfig

description

The dApp security configuration. This configuration object is used to determine communication, transport and process that are used in security-critical scopes.

link

SecurityConfig

since

v0.3.0

Hierarchy

  • SecurityConfig

Index

Properties

Properties

An authentication configuration object. This consists of parameters that are necessary to process authentication for end-users. This configuration option uses the AuthParameters type and consists of a list of dHealth Account Addresses or Public Keys that are used for authentication purposes (registry), as well as an authentication secret which is used for signing access tokens.

example

Example authentication configuration object

{
registries: ["NBLT42KCICXZE2Q7Q4SWW3GWWE3XWPH3KUBBOEY"],
secret: "ThisIsASecretThatYouShouldNotUseAndThatShouldNotLeak",
challengeSize: 8,
}
link

AuthParameters

access

public

var

{AuthParameters}

A CORS configuration object. This consists of parameters that are necessary to secure API Requests of this backend runtime. This configuration option uses the CrossOriginParameters type and consists of an origin configuration to enable/disable CORS and restrict the originators of requests to the API.

example

Example backend CORS configuration object

{ origin: "*" }
link

CrossOriginParameters

access

public

var

{CrossOriginParameters}

Generated using TypeDoc