From 1aa15517a1aa6ffb20a4094b4e49736a1b740657 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Fri, 25 Aug 2023 12:57:16 +1000 Subject: [PATCH] #297: JWT convenience dependencies (is discussion #297) --- nodel-jyhost/build.gradle | 5 +++++ .../src/main/resources/org/nodel/jyhost/nodetoolkit.py | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/nodel-jyhost/build.gradle b/nodel-jyhost/build.gradle index 9cb02055..7349892d 100644 --- a/nodel-jyhost/build.gradle +++ b/nodel-jyhost/build.gradle @@ -74,4 +74,9 @@ dependencies { compile('org.snmp4j:snmp4j:2.5.8') { exclude group:'log4j', module:'log4j' // (brings one extra dependency: log4j; can explicity exclude it because it's optional at runtime) } + + // convenience dependency: JWTs (JSON Web Tokens), see https://github.com/museumsvictoria/nodel/discussions/297 + implementation 'io.jsonwebtoken:jjwt-api:0.11.5' + runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5' + runtimeOnly 'io.jsonwebtoken:jjwt-orgjson:0.11.5' } diff --git a/nodel-jyhost/src/main/resources/org/nodel/jyhost/nodetoolkit.py b/nodel-jyhost/src/main/resources/org/nodel/jyhost/nodetoolkit.py index e45024a9..7cc63836 100644 --- a/nodel-jyhost/src/main/resources/org/nodel/jyhost/nodetoolkit.py +++ b/nodel-jyhost/src/main/resources/org/nodel/jyhost/nodetoolkit.py @@ -346,3 +346,10 @@ def at_cleanup(f): # Returns false if there is at least one item within 'o', true otherwise def is_empty(obj): return obj == None or len(obj) == 0 + + + +# CONVENIENCE DEPENDENCIES + +# JWTs (JSON Web Tokens) +# see https://github.com/museumsvictoria/nodel/discussions/297