Access Jira API using OAuth2.0 2-legged approach in .NET Access Jira API using OAuth2.0 2-legged approach in .NET asp.net asp.net

Access Jira API using OAuth2.0 2-legged approach in .NET


Atlassian currently doesn't support OAuth 2.0, but only 1.0(a).

There is a feature request for this: https://jira.atlassian.com/browse/JRA-43171

I have made an Open Source Jira client in C#, >=.NET 4.5 and fully async (with proxy support), which is available on GitHub and as a NuGet Package. See: https://github.com/dapplo/Dapplo.Jira

Today I added OAuth 1.0a support, which I got working and use the information here for testing:https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src/d625161454d1?at=defaultI used the public key from that repository to setup a test link on my Jira Cloud server, and use the private key in my test case.

The code for testing is here (it's commented out, as the OAuth process opens a browser, which is bad on the test-server)https://github.com/dapplo/Dapplo.Jira/blob/master/Dapplo.Jira.Tests/JiraOAuthTests.cs

I am still looking at a way to make the certificate/private key reading easier, but in a way this is not the job for the library itself...

If there are any questions, I guess issues on GitHub are the best way to communicate.