Skip to content

Commit

Permalink
add extra auth message
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Jan 27, 2024
1 parent 089e9d8 commit e62c739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/library/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def not_authenticated(detail="Incorrect user or token."):

def alert_auth():
print("πŸ“ Require auth: %s" % settings.require_auth)
print("πŸ“ Server mode: %s" % settings.flux_server_mode)
print(
"πŸ“ Secret key %s" % ("*" * len(settings.secret_key))
if settings.secret_key
else "πŸ“ Secret key: unset"
)
print("πŸ“ Server mode: %s" % settings.flux_server_mode)
print(
"πŸ“ Flux user: %s" % ("*" * len(settings.flux_user))
if settings.flux_user
Expand Down
5 changes: 3 additions & 2 deletions docs/getting_started/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $ docker run --rm -it -p 5000:5000 ghcr.io/flux-framework/flux-restful-api
```
```console
πŸ“ Require auth: True
πŸ“ Server mode: single-user
πŸ“ Secret key ***********
πŸ“ Flux user: ********
πŸ“ Flux token: *****
Expand Down Expand Up @@ -110,8 +111,8 @@ $ flux start uvicorn app.main:app --host=0.0.0.0 --port=5000
Or do it separately (two commands):

```bash
$ flux start --test-size=4
$ uvicorn app.main:app --host=0.0.0.0 --port=5000
flux start --test-size=4
uvicorn app.main:app --host=0.0.0.0 --port=5000
```

For the latter, you can also use the Makefile:
Expand Down

0 comments on commit e62c739

Please sign in to comment.