Description of problem:
With the bugzilla update, SAML auth is no longer supported for CLI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ bugzilla --ensure-logged-in query -c nodejs
"--ensure-logged-in passed but you aren't logged in to"
After running "bugzilla login" command, "bugzilla query" was successful.
Successful query, authentication is done using SAML, "bugzilla login" is not required.
Thanks for the report. The description says we no longer support SAML but we never supported SAML. It was likely using a cached login token before, saved with 'bugzilla login'
But it's an interesting question of whether we can support SAML or kerberos auth automatically. I don't know if it's possible, but I've asked internally for more details
Here's the response I got from rhbz devs:
> SAML works using browser redirects, I guess it's possible to do that in
> a CLI tool, but I imagine it'd be a lot of effort.
> The supported method for long term access is APIKEYs so I'd tell them to
> use that.
So there isn't any straightforward API way to do this it seems like. I suggest looking into API keys, which I documented here: https://blog.wikichoon.com/2019/01/python-bugzilla-bugzilla-50-api-keys.html