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?

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay