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