DEV Community

Cover image for Cliente Jira mediante Cookie
Edgar Rios Navarro
Edgar Rios Navarro

Posted on

1 1

Cliente Jira mediante Cookie

Aunque acceder a Jira mediante Cookie es una funcionalidad deprecada, sigue siendo una alternativa en entornos restrictivos al uso del Token.

En Typescript existe una librería recomendada por su reducido tamaño:
https://github.com/UrielCh/jira-api/

El fork que utiliza la opción de Cookie lo subí al siguiente repositorio: https://github.com/edgargs/jira-api/tree/feature/client-cookie

Este bloque de código, demuestra el cambio en la creación del cliente.

const domain:string = Deno.env.get("JRA_DOMAIN")!;
const cookie:string = Deno.env.get("JRA_COOKIE") || '';

const jira = new JiraClient(domain, { COOKIE: cookie });
Enter fullscreen mode Exit fullscreen mode

El valor del cookie se obtiene de la sesión activa en el navegador web.

Image description

Top comments (1)

Collapse
 
pratham_naik_project_manager profile image
Pratham naik

Interesting blog! Jira’s cookie-based authentication can be useful, but it also comes with security considerations. For teams looking for a simpler and more secure project management solution, Teamcamp is a great alternative. Has anyone explored different authentication methods for Jira or other tools?

Jetbrains Survey

Calling all developers!

Participate in the Developer Ecosystem Survey 2025 and get the chance to win a MacBook Pro, an iPhone 16, or other exciting prizes. Contribute to our research on the development landscape.

Take the survey