Skip to content

Commit

Permalink
added a default uuid when login_required is false
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoLeist committed Dec 11, 2023
1 parent 31d432e commit 60bf755
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion convertPheno_server/server/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def decorator(func):
@wraps(func)
def decorated_function(*args, **kwargs):
if not login_required:
return func(userid="dev", *args, **kwargs)
return func(userid="dev", uuid="dev", *args, **kwargs)

token = request.headers.get("Authorization")

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ services:
interval: 10s
timeout: 10s
retries: 5
# command: /entrypoint_run_vite_preview.sh

# run the vite development server and make it available on port 4173
command: /entrypoint_run_vite_preview.sh
tty: true

convert-pheno:
Expand Down
6 changes: 5 additions & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ API_DB_USER=postgres
API_DB_PW=postgres
API_DB_HOST=api-db
API_DB_PORT=5432
API_DB_NAME=postgres
API_DB_NAME=postgres

# API configuration
## enable/disable keycloak security
API_SECURITY=true

0 comments on commit 60bf755

Please sign in to comment.