Auth failure with on-prem jira #159
|
My config file looks like this: jira_api_username: 'me@company.com'
jira_api_token: 'my_token'
jira_api_base_url: 'https://jira.my.company.com'
cloud: False
If I run One odd thing I noticed is that |
Replies: 1 comment 1 reply
|
I was having the same issue, dug in and found JIRA documentation for on premise states:
This can be controlled using the use_bearer_authentication config field in jiratui jira_api_username: 'xxx@xxx.com'
jira_api_token: 'xxxxxxx'
jira_api_base_url: 'https://jira.company.com/'
cloud: False
use_bearer_authentication: TrueAs you mentioned the username should not be required as its not used with bearer auth, which is visible in the jiratui auth logic: class JiraTUIBearerAuth(httpx.Auth):
def __init__(self, token: str, username: str | None = None):
self.token = token
def auth_flow(self, request):
request.headers['Authorization'] = f'Bearer {self.token.strip()}'
yield requestbut as it's not set with a default value in the config class, the click package considers it a mandatory field. |
I was having the same issue, dug in and found JIRA documentation for on premise states:
This can be controlled using the use_bearer_authentication config field in jiratui
As you mentioned the username should not be required as its not used with bearer auth, which is visible in the jiratui auth logic: