Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Different authentication process among JIRA SDK and Standalone? (REST API)

Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2012

Hi,

The same client application works different depending on whether it runs against the JIRA SDK or a JIRA Standalone instance.

1. SDK:

REST login for X username -> get session cookie -> REST call any other method Y -> session cookie re-sent -> Y works for username X.

2. Standalone:

REST login for username X -> get session cookie for anonymous?? -> REST call any other method Y -> session cookie re-sent -> Y fails: OAuth realm authentication failed!!

----------------

Why?

Pablo.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 31, 2012

What is your client doing differently? I've not used the REST interface as much as I'd like yet, but the application I've got behaves exactly the same on both an SDK session and a standalone install.

I'd say the problem is on the "standalone" call though because it looks like it's not sending a valid user id to the standalone Jira (and hence authentication fails later in the process).

Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2012

Yes, it was not a valid user id problem but related to cookies. I've realized that the client app is changing the session cookie between the calls, so JIRA works fine.

REST login-> gets cookie 1-> something bad happens -> sends cookie 2-> REST call returns 401 (unauthorized).

Sorry for this waste of time. It looked more interesting and finally is not related to JIRA.

Thanks and a lot of karma ;)

Pablo.

TAGS
AUG Leaders

Atlassian Community Events