I have require to implement in nodejs. how can I start and go further. Please help me with easy steps.
Hi Rakesh,
I would recommend starting with https://developer.atlassian.com/cloud/jira/software/jira-rest-api-oauth-authentication/
It has a "show me the code" link in
The code for the final output of this tutorial is here: https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples
I'm afraid that repo has moved to https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/ From that link you can see there are different languages you can use to implement OAuth with Jira Cloud, including nodejs examples in https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/dd0264cad0432ed514d2701367c5bfc2b2a18401/nodejs/?at=master
Using the README.md in that repo, along with the first link as a guide, you should be able to implement OAuth in a nodejs format.
I hope this helps.
Andy
the example from https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/dd0264cad0432ed514d2701367c5bfc2b2a18401/nodejs/?at=master
doesn't really work (it's really outdated). I just created a repository with updated version. https://github.com/mateuszdargacz/-atlassian-oauth-examples-nodeJS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mateusz, thanks for sharing latest code. But the example doesn't works if I am not logged-in to JIRA. In this case when I hit http://localhost:8080/sessions/connect, it redirects me to JIRA login page. any idea what could be wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mateusz! works like a charm!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mateusz! Finally a working code!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Access to XMLHttpRequest at 'https://armanw3e.atlassian.net/plugins/servlet/oauth/authorize?oauth_token=7pBReZGW2THfEQTv2zNAl67sdAIkZKKq' (redirected from 'http://localhost:8080/api/v1/jira/connect?user_id=kralb9xobko2zen7g4e-1515430748&jira_host_url=https:%2F%2Farmanw3e.atlassian.net%2F') from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
facing this issue when I request from http://localhost:8081
but found okay from browser
could you please check, Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you find @SK Arman Ali for above cores issue???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.