If CAPTCHA has been triggered, you cannot use JIRA's REST API to authenticate with the JIRA site. The example below is using the net.oauth library.ĬAPTCHA is 'triggered' after several consecutive failed log in attempts, after which the user is required to interpret a distorted picture of a word and type that word into a text field with each subsequent log in attempt. If you want to use OAuth to make requests to JIRA, the best way to do this is to find a helper library which takes care of signing the requests and reading the tokens from the response. "description": "A fix for this issue is checked into the tree and tested.", "description": "A problem which impairs or prevents the functions of the product.", The rest-oauth-client-1.0.one-jar.jar contains the sample client and the contains the source code. Java Archive rest-oauth-client-1.0.one-jar.jarĭrag and drop to upload or browse for files You have to create an Application Link as described in Step 1 above and use this consumer key and the public key and leave the callback URL field empty. Your client will require the following information to be able to make authentication requests to JIRA.Ģ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxZDzGUGk6rElyPm0iOua0lWg84nOlhQN1gmTFTIu5WFyQFHZF6OA4HX7xATttQZ6N21yKMakuNdRvEudyN/coUqe89r3Ae+rkEIn4tCxGpJWX205xVF3Cgsn8ICj6dLUFQPiWXouoZ7HG0sPKhCLXXOvUXmekivtyx4bxVFD9Zy4SQ7IHTx0V0pZYGc6r1gF0LqRmGVQDaQSbivigH4mlVwoAO9Tfccf+V00hYuSvntU+B1ZygMw2rAFLezJmnftTxPuehqWu9xS5NVsPsWgBL7LOi3oY8lhzOYjbMKDWM6zUtpOmWJA52cVJW6zwxC圎28/592IARxlJcq14tjwYwIDAQAB Enter in this the public key and the consumer key which your client will use when making requests to JIRA.Īfter you have entered all the information click OK and ensure OAuth authentication is enabled. After this Application Link has been created, edit the configuration and go to the incoming authentication configuration screen and select OAuth. When creating the Application Link use a placeholder URL or the correct URL to your client, if your client can be reached via HTTP and choose the Generic Application type. This is done through the Application Links administration screens in JIRA. The first step is to register a new consumer in JIRA. Visit the sample repo on Bitbucket to download and work with these samples. Looking for a Provider in a Language other than Java?Ītlassian provides samples of OAuth providers in a number of other languages. For more information about OAuth refer to the OAuth specification. Consumer, Service Provider, request token, access token, etc.). It assumes you are familiar with the OAuth terminology (e.g. The instructions below describe how to use a Java client to provide OAuth authentication when making requests to JIRA's REST endpoints. This is one of three methods that you can use for authentication against the JIRA REST API the other two being basic authentication and **cookie-based authentication **(see related information).
This page shows you how to allow REST clients to authenticate themselves using OAuth.