jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Fix authType vs AuthType var discrepancy

Open xbezdick opened this issue 2 years ago • 4 comments

xbezdick avatar Apr 11 '22 15:04 xbezdick

Hi @xbezdick, Thank you for the PR!

I see that you changed unexported variables to the exported one. Could you please explain the reason for that? I don't see any discrepancies here.

ankitpokhrel avatar Apr 22 '22 06:04 ankitpokhrel

Hi, the unexported variable in go in for example Fedora is not available to client.go. It works on mac for some reason but will not work on most linux machines I tested on.

xbezdick avatar May 13 '22 13:05 xbezdick

Confirmed this - main doesnt work on F36, but this PR does. Otherwise it defaults to "Basic" auth, regardless of setting env.

dofinn avatar Jun 18 '22 10:06 dofinn

This is strange!

@xbezdick @danobi Can we confirm that JIRA_AUTH_TYPE variable is accessible in the shell/sub-shell and has a correct value? It looks like the variable is somehow not available in the shell. Do you have same issue if you set auth type directly in the config: auth_type: bearer?

ankitpokhrel avatar Jun 20 '22 06:06 ankitpokhrel