Comments (8)
Hi @danepowell , I've tried with your fork (danepowell/gajira-login@bearer
) but I still have a 401 Unauthorized
status: 401,
body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>
Do I have to do some thing in particular to make it work ? I've also tried @luisiturrios1 suggestion, still failing.
My token is OK with curl, with a JIRA cloud server for information.
from gajira-login.
So...these plugins are basically dead right?
from gajira-login.
Yeah, you'll need to fork this action and update it to use Bearer auth instead of basic auth, which is actually fairly simple:
gajira-login/common/net/Jira.js
Line 82 in 90a5995
Ironically, basic auth still works for Jira server / on-premise even though this plugin explicitly denies support for Jira server.
from gajira-login.
Create the encoded token in the format of base64Encode(:<api_token>). For example, if the username is [email protected] and the token is 954c38744be9407ab6fb, then [email protected]:954c38744be9407ab6fb needs to be base64 encoded to form Y2lAZXhhbXBsZS5jb206OTU0YzM4NzQ0YmU5NDA3YWI2ZmI=
from gajira-login.
Well, after some investigation I'm not sure but I guess we need to configure PAT for Bearer usage. Unfortunately unavailable on my Jira Cloud...
Finally, my journey has ended here: master...acquia:server aka acquia/gajira-login@server
(thanks again @danepowell !). With downgrading to the rest API version, we can use again MAIL+API_TOKEN authentication.
That's a shame, and I don't know if it's sustainable, but it seems working for now 🤷
from gajira-login.
I've thoroughly confused myself at this point trying to sort out every combination of install type (server / cloud), api version (2/3), and authentication method (bearer, basic, token, password...)
But I think if you want to use mail + token (or is it mail + password?) via Basic authentication and server install, you should use the server
branches of these packages:
If you want to use personal access tokens (i.e. bearer authentication), use the bearer
branches of those packages.
I no longer maintain my personal forks (danepowell/gajira-login and danepowell/gajira-create).
from gajira-login.
This actions still works as shown with our own actions that runs on every push and logs into Jira cloud.
I did get into a similar issue by using the wrong API tokens. As per the documentation, follow the instructions here to how to get the correct API tokens to be used in this action.
I'll close this ticket for now unless there's something else not working with it.
from gajira-login.
I apologize that I can't recall the full history of this issue, but the current problem for me is that our Jira instance only supports personal access tokens, hence the need for our fork at https://github.com/acquia/gajira-login
from gajira-login.
Related Issues (13)
- gajira-demo repository is gone? HOT 2
- intermittently not working HOT 1
- Jira server support? HOT 3
- "Logged in as: undefined" even though login works HOT 3
- Node.js 12 actions are deprecated HOT 2
- Login fail after upgrade to v3.0.0 (please specify JIRA_BAS_URL) HOT 3
- Login job fails with 401 Unauthorized error. HOT 1
- Syntax Error: Unexpected token .
- Security Vulnerability
- Not working behind proxy
- Node 16 end of life HOT 1
- Jira Login returns Logged in as undefined HOT 2
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 gajira-login.