-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headless authentication flow? #362
Comments
Hi! The Balsam login methods are configurable, and the client should poll the server for which method it wants to use. The example configuration in
If you change that to just This login method should tell the
For a totally headless workflow that never requires re-authenticating users interactively, this is the relevant section of the login CLI: balsam/balsam/cmdline/login.py Lines 39 to 42 in 72a6e3d
you might consider adding a new subclass of the password-based client with the balsam/balsam/client/requests_password.py Lines 68 to 74 in 72a6e3d
You would then want to update the |
@masalim2 I'm working on this now - is there is a way to disable requiring ssl /https? |
oup nevermind, I was using the |
@masalim2 should I also be making a new balsam/server/auth/headless_login.py? I was going to use the password_login.py, but the endpoints there seem to have an oauth flavor still. |
Hi @vsoch, sorry this slipped through the cracks. Despite the name of that form parameter |
I've finally gotten Balsam running in my containers, but I'm having trouble understanding auth. When I do the login command, I get server errors:
And the server logs:
Probably the main issue is:
This should have been created here: https://github.com/argonne-lcf/balsam/blob/72a6e3d8d70759d1e4b746c8e1a75180ad303a7c/balsam/server/models/alembic/versions/f8fbad8262e3_initial.py#LL30C1-L30C1
Running the migration command with gunicorn as a prefix seems to exit with 1, but without, seems to do the migrations:
That seems to at least get around these issues of the server error, but now there is another bug:
Would it be possible to have a headless mode? I don't see how this would work in an automated workflow without that. Thanks!
The text was updated successfully, but these errors were encountered: