Comments (7)
The cookie-auth does work for me currently, I am using it on a daily basis.
If you could create a pull request with a working OAuth, it would be greatly appreciated. Even if you did one which replaces the cookie authentication with OAuth I could then stitch that code into ejira to work with both.
One thing that I would propose, though, is to make the pull request to https://github.com/nyyManni/jiralib2, as it was recently extracted away from Ejira. I will remove jiralib2.el
from this repository in the "near future".
from ejira.
I was trying for awhile today to make it work, but had problems with connecting. It looks like Jira is deprecating cookie-based authentication.
The deprecation period for this functionality has ended. From June 3rd, 2019, we will be progressively disabling the usage of this authentication method. If you are using a REST endpoint in Jira with basic authentication, update your app or integration to use API tokens, OAuth, or Atlassian Connect.
Is the performance of basic auth with a token poor enough that this project would not work? Would oauth work better?
from ejira.
I would love to implement OAuth or token auth, but unfortunately our company is using JIRA Server instead of JIRA Cloud and it does not seem to support either of those (or I do not have enough access rights to enable them). Thus I do not have anything to test these login methods with, which makes them difficult to implement.
Atlassian completely deprecating cookie-based auth is unfortunate for Ejira.
They seems to offer a free evaluation for JIRA Cloud, but it is only 7 days, so it would make for a quite agile feaure release 😅
JIRA Server has a 30 day evaluation period. I could run it locally and check if I can get OAuth tokens working there, as I would be the admin. But that hard deadline might still be too much for my calendar.
from ejira.
Aha yeah it looks like API tokens are a no-go for Jira Server.
Jira Server does not provide those specific types of API tokens that can be used in basic auth, like Jira Cloud does. If you want to create a token in Jira Server for use in REST calls, you need to create an OAuth token, which has an expectation of creating an application link as described in Jira Server Devleoper page on OAuth.
Maybe Ejira could be migrated to support both token-based and OAuth-based authentication? I have setup API tokens and it seems to work fine (maybe a bit slow to load issues but I'm already used to that when working with Jira).
I could make a PR to replace the current not-working (or does it work for you?), soon-to-be-deprecated cookie-based approach with the token approach. And then in a later PR I could try to setup OAuth?
from ejira.
Repository at https://github.com/nyyManni/jiralib2 now updated with support for cookie, basic and token auth. Tested with a self-hosted JIRA Server and a JIRA Cloud trial. Would be nice if you could give it a try before my JIRA Cloud trial expires after 7 days 😄.
OAuth approach is a bit more involved, I might get into that #later.
from ejira.
Just tested it. Login successfully to jira cloud with api token.
But get error when calling ejira-guess-epic-sprint-fields
. We don't have any sprint on jira.
Attempting to auto-configure Ejira custom fields...
REQUEST [error] Error (error) while connecting to https://company.atlassian.net/rest/api/2/issue/nil/editmeta.
user-error: Request failed: Wrong URL path
from ejira.
It seems that either of the queries in ejira-guess-epic-sprint-fields
does not return any results.
The queries are:
"type = <ejira-epic-field>"
for an epic (to get the epic summary field name)"type != <ejira-epic-field>"
for a regular issue (to get the epic link and sprint field names)
It is more likely that it is the first one which is failing. What is your setting of ejira-epic-type-name
and does it correspond to the type name of an Epic on your JIRA?
from ejira.
Related Issues (20)
- ejira-progress-issue fields for code review
- verbatim text (curly braces) HOT 4
- Having trouble logging in HOT 1
- ejira does not appear to be published anywhere HOT 3
- Working on issues with multiple users HOT 4
- ejira-hourlog seems to be one hour off for every entry HOT 10
- I can unassign an issue but I can't assign it to a user or myself HOT 14
- wrong-type-argument stringp replace-regexp-in-string (at ejira--parse-sprint) HOT 20
- Feature: add "open in external browser" method HOT 4
- Issues moved between projects show up in both projects
- `Update-my-projects` doesn't get all issues for very large projects
- ejira-update-my-projects not working HOT 1
- update-my-projects fails on first run HOT 2
- ejira-heading-to-task return errors HOT 1
- Add {noformat} to parser HOT 2
- Team-managed projects lack Epic Links etc
- How to use with Jira cloud HOT 4
- `ejira-update-my-projects` should be asynchronous HOT 1
- Does ejira has plan to host on melpa?
- (invalid-function #<buffer AAA.org>) HOT 5
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 ejira.