Code Monkey home page Code Monkey logo

Comments (9)

mauriciojovel avatar mauriciojovel commented on June 3, 2024 1

You need use a personal api token

https://circleci.com/account/api

Change it and let me know if work for you.

Best.

from jira-connect-orb.

KyleTryon avatar KyleTryon commented on June 3, 2024

@mkly Could you please update to 1.1.6 and ensure the personal token is set? We have just pushed a patch that should ensure that you are signed in.

from jira-connect-orb.

cskinfill avatar cskinfill commented on June 3, 2024

With the update referenced in this ticket, is it a project token or personnel token needed to use the jira orb? I'd prefer to use a project token, so it's not associated when my account, in case I'm no longer associated with the org in GitHub.

from jira-connect-orb.

KyleTryon avatar KyleTryon commented on June 3, 2024

Hello all,

I suspect actually the last patch 1.1.6 may not in fact work, I realize now we are doubling up on the token now, it was already included via a special "fetch" function. So I suspect it might have actually been working previously.

Could anyone confirm they can curl the https://circleci.com/api/v2/me endpoint manually with their token successfully and then still saw the issue (prior to the new patch)?

@cskinfill this is the same token as required previously, actually to my mistake it was already being attached to that endpoint and I had missed that, we will remove this in the next patch as we figure this out.

The API key used is used to authenticate with an endpoint that speaks with Atlassian. Project level tokens are for Read-Access only and can not be used for this task. It is suggested for some to setup a "machine" user for write-level tokens that arent tied to a specific user.

If anyone else can confirm they are unable to connect to the endpoint via curl, then it may be the wrong token was used or has expired. If that is the case we may just undo the change.

from jira-connect-orb.

mkly avatar mkly commented on June 3, 2024

@KyleTryon My apologies, the issue was that apparently this was working with a project token before, but now it requires a personal token.

from jira-connect-orb.

KyleTryon avatar KyleTryon commented on June 3, 2024

@mkly No apologies necessary! There may have been a change to the endpoint the orb uses, I will investigate that.

We will undo the change from #42 in the next patch which is currently duplicating the key.

from jira-connect-orb.

cskinfill avatar cskinfill commented on June 3, 2024

@KyleTryon @mkly circling back on this ... so where does this stand? Do we need a personal token now? Or going back to using a project token (per #39 (comment)) ?

from jira-connect-orb.

devintjones avatar devintjones commented on June 3, 2024

Hi there, I'm still seeing this issue with a personal token:
https://circleci.com/api/v2/me?circle-token=<personal token>
responds with:
{ "message" : "You must log in first." }

However I am able to get a successful response from the v1 endpoint

Also, would like to note that the v2 docs don't seem to mention a v2/me resource.

I'm downgrading to @1.1.3 in the meantime

from jira-connect-orb.

nicowenterodt avatar nicowenterodt commented on June 3, 2024

Any news on that? We also have problems using personal token leading to 401 "You must log in first" errors.

from jira-connect-orb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.