1.2.0 • Published 3 years ago

@jangolano/atlassian v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NPM Version NPM Downloads

Install

$ npm install @jangolano/atlassian

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Atlassian } from '@jangolano/atlassian';
import { Redirect } from '@salte-auth/redirect';

const auth = new SalteAuth({
  providers: [
  new Atlassian({
    clientID: '12345',
    responseType: 'code',
    scope: 'read:jira-work',
    audience: 'api.atlassian.com',
    prompt: 'consent',
    redirectUrl: 'http://localhost'
  })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('atlassian');