techtalk / JiraRestClient

A simple client for Atlassian JIRA service REST API
Other
65 stars 80 forks source link

It is not possible to use other authentication methods besides Basic. #21

Open dgpratt opened 9 years ago

dgpratt commented 9 years ago

JIRA documentation claims that JIRA supports OAuth for API authentication and I have personally confirmed that NTLM also works. Unfortunately, it doesn't seem possible to use anything other than Basic authentication with JiraRestClient.

If I submit a pull request to permit alternate methods of authentication, is there a good chance it will get accepted? I was thinking to add an alternate constructor to JiraClient that accepts a parameter of type IAuthenticator (defined in the RestSharp library) in lieu of username and password.

I was also thinking that it would make sense to use HttpBasicAuthenticator in the default case, rather than manually adding the Basic auth header to the request.