-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jira Connect App authenticate with JWT #293
Comments
Hello @Darkbound! I had JWT auth in v2 of library. But don't have any info it was worked or not. Could you please install v2 and test it. After that I expect any info about results here https://www.npmjs.com/package/jira.js/v/2.20.1 Thank you! |
Hello @MrRefactoring thanks for getting back to me, I tested the older version and indeed it seems to be working. Would it be possible for you to re-add it? This is the only way to authenticate when integrating another platform with Jira basically, because the preferred way of doing it is with an App, that way we can generate tokens on the fly whenever needed, instead of having to deal with OAuth2 and bind the integration to a user instead of the whole Jira space. I actually even forked it last night and was about to do it on my own, but luckily you replied quickly :D |
Please describe me how to issue needed auth data for writing integration test? |
@MrRefactoring what do you mean? You have it working in the previous version as you pointed out, is it not enough to simply restore the removed code? https://github.com/MrRefactoring/jira.js/pull/284/files In this PR you removed JWT and Oauth1, the JWT code is correct, it just needs to be restored. |
I need to write a tests for this case. And also wanna save browser capability (reason why I cannot just restore removed code). At the moment I have needed info how to generate |
@MrRefactoring ok so you need to create a Jira Connect App You can serve the atlassian-connect.json with a simple http server as shown in the guide. You will also need to provide a webhook endpoint for /installed when you install the App in jira they will send you a json payload that contains the sharedSecret and the issuer is the Then you can use these two to authenticate |
Thank you. Need to try it |
@MrRefactoring I did it with Next.js because its easiest to provide the endpoints, because they need to be under the same base url. Let me know how hit goes :) |
Yup, I will let you know when I will have a chance to look :) |
any updates on this? I have the same issue in version 3. |
Hello! Unfortunately, I haven't had the opportunity to investigate this issue yet. My apologies for the inconvenience. |
For now the solution is to use the older version it works perfectly fine there This is what we did |
Hello,
I am in the process of building a Jira Connect App that I want to use to integrate my app with Jira spaces.
However, the Jira Connect Apps seem to be authenticating in a way that I don't see in the currently supported list of options, or I don't know exactly how to use the ones that currently exist, since the JWT generation depends on the
key
of the app, the specific path to theresource
that I want to access, for example/rest/api/3/issue/ISSUE-1
and so on.Is there a built in way to do this?
I love the package otherwise, I have used it for personal projects and now I want to go deeper into Jira.
Thanks
The text was updated successfully, but these errors were encountered: