Refractor auth logic

+ Add possibility (_requireAdminAuthentication, _requireTeamleaderAuthentication) to make auth optional
+ Add possibility to combine multiple auth types into one function
This commit is contained in:
Stephan
2022-05-30 18:18:44 +02:00
parent 7dc9dd1558
commit eb20ff4965
3 changed files with 194 additions and 102 deletions
+1
View File
@@ -52,6 +52,7 @@ if [ "$RECREATE" = true ]; then
-e DATABASE_URL="postgresql://server:server@postgres:5432/management?schema=public" \
-e NODE_ENV="development" \
-e PORT="${D_PORT}" \
-e JWT_SECRET="not_for_production" \
-p "${D_PORT}":"${D_PORT}" \
--entrypoint "/app/scripts/docker-entrypoint.dev.sh" \
node