diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-15 03:46:51 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-15 03:46:51 +0300 |
commit | 7da6c6a8e4a3590dfb8569b9fc24b4054552c96f (patch) | |
tree | 7e698115c9fc07767a7c4565e64174441d5d67db /config | |
parent | d113caace46ee53b86a31da2879d991562de45a1 (diff) | |
download | bsu-fantom-7da6c6a8e4a3590dfb8569b9fc24b4054552c96f.tar.gz |
feat: setup authentication
Diffstat (limited to 'config')
-rw-r--r-- | config/default.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/default.json b/config/default.json new file mode 100644 index 0000000..ddc720f --- /dev/null +++ b/config/default.json @@ -0,0 +1,18 @@ +{ + "authentication": { + "secret": "2JtbBy2ycQ1V3kQfPcSgXYmFsB7", + "service": "users", + "entity": "user", + "authStrategies": [ + "jwt", + "local" + ], + "local": { + "usernameField": "\\username", + "passwordField": "password" + }, + "jwtOptions": { + "expiresIn": "30 days" + } + } +} |