Skip to content

rbriski/atlassian-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atlassian-jwt


atlassian-jwt
JWT library for Atlassian in Go.

Build Status

atlassian-jwt is a library that makes it easy to authenticate with JIRA from a variety of app types.

Not maintained

Head on over to https://github.com/golang-jwt/jwt for the most up-to-date library.

Installation

go get github.com/rbriski/atlassian-jwt

Usage (with go-jira)

import (
    jira "github.com/andygrunwald/go-jira"
    jwt "github.com/rbriski/atlassian-jwt"
)

c := &jwt.Config{
    Key: "some_key",
    ClientKey: "some_client_key",
    SharedSecret: "so_freakin_secret",
    BaseUrl: "http://example.com",
}

// Pass the JWT client into the library client
jiraClient, _ := jira.NewClient(c.Client(), c.BaseURL)

Examples

There are a number of different ways that an app can authenticate with JIRA. Right now, atlassian-jwt only handles JWT authentication as an add-on.

Using ngrok, you can spin up a working example to authenticate with.

> cd examples/jwt
> BASE_URL=https://<some_string>.ngrok.io go run main.go

About

JWT library for Atlassian in Go (golang)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages