Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a login with Cookie Auth + Token

ixinit March 19, 2020

Hey people,

I'm a complete beginner with Jira Rest Api.

I want to use the Cookie Auth with token and identify the user with the cookie so that the user has the possibility to do commands with his rights to Jira with my web application.

I prefer php with html input.

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
WW
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.
March 20, 2020

If you're using Crowd, have you looked at the Crowd REST API?  It has info specifically on cookies and tokens.

Otherwise, with Jira, it's not as well (or at all) documented in the Jira Server REST API documentation how to use cookies/tokens.

The topic does, however, have its own documentation: Cookie-based authentication.

That ought to get you started.

ixinit March 24, 2020

g

Thank you. I never heard of crowd rest api. I will check it out but what is the difference?


I saw the jira server rest api and I also do not think that it is well documented and that is the problem it just has the cookie based authentication but without a combination with a token.

Thanks !

WW
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.
March 24, 2020

There are all kinds of Atlassian REST APIs beyond the Jira Server one.  There's one for agile, one for Service Desk, plugins have them, etc.  Same for Confluence.  Sometimes I come across them mentioned in the Community.  There are ones for cloud as well, but I don't use cloud.

You can even find them if you poke around in the Developer Console in your browser and watch what is used to perform various actions in the Jira UI.  Here's a few links to get you more confused/started. :)

JIRA Server REST API Reference

JIRA Agile REST API Reference

JIRA Service Desk REST API Reference

Confluence REST API Documentation

They do update these every few months, so I'd check to make sure you're looking at the latest (and/or most compatible for your instance) version of them.  There are links at the top of most of the pages to bring you to the different versions.

ixinit March 26, 2020

Nice thank you really much!

What do you think of the use of extern jira libaries?

WW
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.
March 26, 2020

I'm not sure what you mean by external Jira libraries, but I find the REST APIs to be very useful.  I sometimes wish they were more useful, but I'm glad to have what they provide.

Suggest an answer

Log in or Sign up to answer