Comments (9)
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.
@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.
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.
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.
@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.
@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.
@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.
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.
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)
- Setup Jira Integration via API HOT 1
- Jira Orb Requires an Unsafe PAT HOT 3
- jira orb throw error "At least one 'issueKeys' is required" HOT 3
- Allow custom deployment description HOT 1
- No valid associations found for deployment HOT 3
- Jira Connect Orb fails on Windows executors HOT 1
- error: scan is not defined HOT 3
- Add parameters to support reporting test status HOT 1
- Curl not using valid token format
- Orb requires a PERSONAL token and does not work with project tokens HOT 4
- Deployment status options vs what is supported. HOT 1
- Deployments do not appear in Jira when using a `post-step` HOT 3
- {{build.name}} returns repository name, not destination branch HOT 1
- CircleCI JIRA job passes even when JIRA notification fails HOT 1
- Missing support for Gitlab HOT 1
- all_commit_details is missing most of commits related to GitHub pull request HOT 1
- Handling HTTP errors gracefully HOT 4
- ✨ Feature: add ability to pass environment_type via environment variable HOT 1
- Deployments to the same environment are treated as different environments HOT 1
- Question regarding futures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira-connect-orb.