From 1f7b84c62b35e781c4b6c70380cf03056c12b27a Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 15 Jul 2019 17:44:06 +0000 Subject: [PATCH] Add rubygem-atlassian-jwt 0.2.0 In order to access the Atlassian Connect REST APIs, an app authenticates using a JSON Web Token (JWT). The token is generated using the app's secret key and contains a claim which includes the app's key and a hashed version of the API URL the app is accessing. This gem simplifies generating the claim. This gem provides helpers for generating Atlassian specific JWT claims. It also exposes the ruby-jwt gem's encode and decode methods. https://bitbucket.org/atlassian/atlassian-jwt-ruby --- www/Makefile | 1 + www/rubygem-atlassian-jwt/Makefile | 21 +++++++++++++++++++++ www/rubygem-atlassian-jwt/distinfo | 3 +++ www/rubygem-atlassian-jwt/pkg-descr | 9 +++++++++ 4 files changed, 34 insertions(+) create mode 100644 www/rubygem-atlassian-jwt/Makefile create mode 100644 www/rubygem-atlassian-jwt/distinfo create mode 100644 www/rubygem-atlassian-jwt/pkg-descr diff --git a/www/Makefile b/www/Makefile index 6218402e210c..20e94d6ef25c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1959,6 +1959,7 @@ SUBDIR += rubygem-anemone SUBDIR += rubygem-asana SUBDIR += rubygem-async_sinatra + SUBDIR += rubygem-atlassian-jwt SUBDIR += rubygem-best_in_place SUBDIR += rubygem-best_in_place-rails5 SUBDIR += rubygem-bluecloth diff --git a/www/rubygem-atlassian-jwt/Makefile b/www/rubygem-atlassian-jwt/Makefile new file mode 100644 index 000000000000..4f730abcb9d7 --- /dev/null +++ b/www/rubygem-atlassian-jwt/Makefile @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= atlassian-jwt +PORTVERSION= 0.2.0 +CATEGORIES= www rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Authenticate with the Atlassian Connect REST APIs + +LICENSE= APACHE20 + +RUN_DEPENDS= rubygem-jwt21>=2.1.0:www/rubygem-jwt21 + +USES= gem +USE_RUBY= yes + +NO_ARCH= yes + +.include diff --git a/www/rubygem-atlassian-jwt/distinfo b/www/rubygem-atlassian-jwt/distinfo new file mode 100644 index 000000000000..aa3c0b47fcf2 --- /dev/null +++ b/www/rubygem-atlassian-jwt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1563126988 +SHA256 (rubygem/atlassian-jwt-0.2.0.gem) = 52e653e9d6062d7a740c3675b0e79fa08367927c6fc17f5476d1b6b3798c6eb2 +SIZE (rubygem/atlassian-jwt-0.2.0.gem) = 8704 diff --git a/www/rubygem-atlassian-jwt/pkg-descr b/www/rubygem-atlassian-jwt/pkg-descr new file mode 100644 index 000000000000..2201c4384fa5 --- /dev/null +++ b/www/rubygem-atlassian-jwt/pkg-descr @@ -0,0 +1,9 @@ +In order to access the Atlassian Connect REST APIs, an app authenticates using a +JSON Web Token (JWT). The token is generated using the app's secret key and +contains a claim which includes the app's key and a hashed version of the API +URL the app is accessing. This gem simplifies generating the claim. + +This gem provides helpers for generating Atlassian specific JWT claims. It also +exposes the ruby-jwt gem's encode and decode methods. + +https://bitbucket.org/atlassian/atlassian-jwt-ruby