How to identify which type of authentication is supported in jira

I am running below command

curl.exe -D- -X GET -H "Authorization: Basic c3VzaW5naDpZZ3ZxYXozMjEj" -H "Content-Type: application/json" "https://product-ira.ciena.com/rest/api/2/issue/QA-31"

 

Server output

curl.exe -D- -X GET -H "Authorization: Basic c3VzaW5naDpZZ3ZxYXozMjEj" -H "Conten
t-Type: application/json" "https://product-jira.ciena.com/rest/api/2/issue/QA-31"
HTTP/2.0 401
server:nginx
date:Sat, 23 Apr 2016 08:51:43 GMT
content-type:text/html;charset=UTF-8
content-length:4304
x-arequestid:291x14654489x2
x-seraph-loginreason:AUTHENTICATED_FAILED
www-authenticate:OAuth realm="https%3A%2F%2Fproduct-jira.ciena.com"
x-content-type-options:nosniff
set-cookie:JSESSIONID=4B0B091270F3D780C8A3D547B8DB9E1C; Path=/; Secure; HttpOnly


<html>

<head>
<title>Unauthorized (401)</title>

 

#########################################################

Does it means my company JIRA server support oAuth type authentication only

2 answers

1 accepted

0 vote

Basic auth is supported in all instances. You are getting an "Unauthorized" error. That could be wrong password or that the user doesn't have the required permissions (to view the issue in this case).

i am using basic authentiation but i am getting www-authenticate:OAuth realm="https%3A%2F%2Fproduct-jira.ciena.com" in Server response . 

It is returning an HTML page:

<title>Unauthorized (401)</title>

Do you have the said issue in your JIRA? I see that you are using the same issue key in the JIRA examples.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

522 views 8 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you