summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-15 03:46:51 +0300
committereug-vs <eug-vs@keemail.me>2020-11-15 03:46:51 +0300
commit7da6c6a8e4a3590dfb8569b9fc24b4054552c96f (patch)
tree7e698115c9fc07767a7c4565e64174441d5d67db /config
parentd113caace46ee53b86a31da2879d991562de45a1 (diff)
downloadbsu-fantom-7da6c6a8e4a3590dfb8569b9fc24b4054552c96f.tar.gz
feat: setup authentication
Diffstat (limited to 'config')
-rw-r--r--config/default.json18
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"
+ }
+ }
+}