-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix(auth): Fix repeat auth calls on logout #321
fix(auth): Fix repeat auth calls on logout #321
Conversation
30f1471
to
24ea4f3
Compare
f4c79c4
to
727b3fc
Compare
Just testing this out quickly, it seems to work very nicely when using the BasicAuthManager on the backend. However, when I use the standard development NoopAuthManager, the behaviour is a little funny. It displays the Bearer auth login page, and if I leave the token field blank and submit the form, I see that the client makes the |
The latest fixup should let you login with an empty token when using the NoopAuthManager.
When querying the auth method by calling /auth for the first time, I changed |
I don't think it really matters what's displayed with the NoopAuthManager, so long as just clicking Submit lets the user in without having to enter some arbitrary faked credentials. Even better would be if NoopAuthManager led to the Login form being automatically dismissed since the default no-credentials case should count as valid authentication there, but that's just a nice-to-have. We aren't expecting anyone to use NoopAuthManager other than developers at this point anyway, and unless we decide to package up and support a "local installation" of Cryostat (either as a bare JVM process or as a local Podman container), I don't see that changing.
How would this interact/behave with saved credentials for Bearer tokens? It's best to avoid making any assumptions or having some preferential treatment for one login form over the others, I think. |
If you check out the |
Makes sense, thanks. Tangent: |
I like the idea of the |
Yea, unless we do some build-time hacks to strip it out to save a few bytes of storage space, the component would end up included in the shipped Cryostat image, but we would just never expect anyone to actually configure their Cryostat instance to trigger it to show up. It's not that dissimilar to the downstream productized builds with the Operator only using Bearer auth in practice, but still containing the Basic auth form and code for handling Basic credentials. |
Fixes #320