Password Policies

<< Click to Display Table of Contents >>

RayVentory Data Hub > 12.6 u5 > Administration and User Guide > Administration > Users 

Password Policies

In RayVentory Data Hub the password policies can be configured according to the specific needs of a company. By default, no specific policies are given, which means that RayVentory Data Hub will except every entry as a password. The password policies can be configured in the appsettings.json which can be found in the [InstallDir].  The default appsettings.json can be found here.

 

  "TokenManagement": {

    "secret": "RayVentoryDataHubTopSecretSecret1337",

    "passwordFormat": "",

    "issuer": "Raynet GmbH",

    "audience": "RayVentory Data Hub User",

    "accessExpiration": 30,

    "refreshExpiration": 720,

    "rememberMeRefreshExpiration": 10080

  },

 

In order to specify the password policies enter the specific policies in the TokenManagement section of the JSON.

 

Example:

 

"passwordFormat": "^

(?=.*?[#?!@$%^&*-])

(?=.*[0-9])

(?=.*[a-z])

(?=.*[A-Z])

[a-zA-Z0-9\\#?!@$%^&*-]

{8,}

$",

 

Value

Description

"^

This marks the start of the value.

(?=.*?[#?!@$%^&*-])

One of the following symbols needs to be contained in the password: #, ?, !, @, $, %, ^, &, *, or -.

(?=.*[0-9])

One number from 0 - 9 needs to be contained in the password.

(?=.*[a-z])

One lower case letter from a - z needs to be contained in the password.

(?=.*[A-Z])

One upper case letter from A - z needs to be contained in the password.

[a-zA-Z0-9\\#?!@$%^&*-]

This string defines what symbols can be used.

a-z: lower case letters from a - z

A-Z: upper case letters from A-Z

0-9: numbers from 0 - 9

//#?!@$%^&*-: the following symbols: #, ?, !, @, $, %, ^, &, *, and - .

{8,}

Defines the minimum number of sign that the password must consist of.

$",

This marks the end of the value.