GithubHelp home page GithubHelp logo

alydemah / -atlassian-oauth-examples-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mateuszdargacz/-atlassian-oauth-examples-nodejs

1.0 1.0 0.0 11 KB

updated version of https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/dd0264cad0432ed514d2701367c5bfc2b2a18401/nodejs/?at=master

JavaScript 100.00%

-atlassian-oauth-examples-nodejs's Introduction

Nodejs example of Jira OAUTH

Here a tutorial for getting the required oauth keys and generating the Private key: https://developer.atlassian.com/server/jira/platform/oauth/#step-1-configure-jira

It's update of official repository:

https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/dd0264cad0432ed514d2701367c5bfc2b2a18401/nodejs/?at=master

This example simulates a nodejs client retrieving a JIRA issue via Oauth. You connect your browser to the node server (running on port 8080 by default). Go to /session/connect, you will be redirected to JDOG where you do the OAuth dance, JDOG redirects you to /session/callback where the REST representation of JRADEV-8110 is then retrieved from JDOG (using the new freshly minted OAuth access token).

Pre-requisites

  • Connectivity to JDOG (pretty eash to change to another JIRA instance though)
  • An issue with key JRADEV-8110
  • An OAuth consumer with 'oauth-sample-consumer' as it's key and the public key from rsa.pub
  • Nodejs ** oauth module from my fork (https://github.com/sladey/node-oauth) ** express module (http://expressjs.com/)

Running the test

  • Create a config.js file on your home directory, that looks like this:

    var config = {} config.consumerKey = "oauth-sample-consumer"; config.consumerPrivateKeyFile = "atlassian-oauth-examples/rsa.pem" module.exports = config;

  • Start the node server node app.js

  • Point your browser at '/session/connect'

  • You should be redirected to JDOG, do the oauth dance then back to the node server and you should see details on JRADEV-8110.

-atlassian-oauth-examples-nodejs's People

Contributors

mateuszdargacz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.