forked from pool/java-jwt
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
965aa85df2 | ||
|
47672b8d70 | ||
|
1756653100 | ||
|
ea4fd7f65e |
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c92783f373c43c061a7b1aed77de11a1bcd9354bd8ff8aa1302fe2fd205bc1d0
|
|
||||||
size 128628
|
|
3
4.4.0.tar.gz
Normal file
3
4.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc5d9809df1e6cc094e9ccf8e793d7ea5b5388b057eb35640e7f7c59e843b48c
|
||||||
|
size 161373
|
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.auth0</groupId>
|
<groupId>com.auth0</groupId>
|
||||||
<artifactId>java-jwt</artifactId>
|
<artifactId>java-jwt</artifactId>
|
||||||
<version>3.8.3</version>
|
<version>4.4.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>java jwt</name>
|
<name>java jwt</name>
|
||||||
<description>Java implementation of JSON Web Token (JWT)</description>
|
<description>Java implementation of JSON Web Token (JWT)</description>
|
||||||
@ -29,13 +29,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-databind</artifactId>
|
<artifactId>jackson-databind</artifactId>
|
||||||
<version>2.10.0.pr3</version>
|
<version>2.14.2</version>
|
||||||
<scope>runtime</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-codec</groupId>
|
|
||||||
<artifactId>commons-codec</artifactId>
|
|
||||||
<version>1.12</version>
|
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
143
java-jwt-build.xml
Normal file
143
java-jwt-build.xml
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project name="java-jwt" default="package" basedir=".">
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Build environment properties -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<property name="project.groupId" value="com.auth0"/>
|
||||||
|
<property name="project.artifactId" value="java-jwt"/>
|
||||||
|
<property name="project.version" value="4.4.0"/>
|
||||||
|
|
||||||
|
<property name="compiler.release" value="8"/>
|
||||||
|
<property name="compiler.source" value="1.${compiler.release}"/>
|
||||||
|
<property name="compiler.target" value="${compiler.source}"/>
|
||||||
|
|
||||||
|
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||||
|
<property name="build.dir" value="target"/>
|
||||||
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||||
|
<property name="build.srcDir" value="src/main/java"/>
|
||||||
|
<property name="build.jmhDir" value="src/jmh/java"/>
|
||||||
|
<property name="build.resourceDir" value="src/main/resources"/>
|
||||||
|
<property name="build.javadocDir" value="src/main/javadoc"/>
|
||||||
|
|
||||||
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Defining classpaths -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<path id="build.classpath">
|
||||||
|
<fileset dir="lib">
|
||||||
|
<include name="**/*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Cleaning up target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="clean" description="Clean the output directory">
|
||||||
|
<delete dir="${build.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Compilation target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="compile" description="Compile the code">
|
||||||
|
<mkdir dir="${build.outputDir}"/>
|
||||||
|
<javac destdir="${build.outputDir}"
|
||||||
|
nowarn="false"
|
||||||
|
debug="true"
|
||||||
|
optimize="false"
|
||||||
|
deprecation="true"
|
||||||
|
release="${compiler.release}"
|
||||||
|
target="${compiler.target}"
|
||||||
|
verbose="false"
|
||||||
|
fork="false"
|
||||||
|
source="${compiler.source}">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${build.srcDir}"/>
|
||||||
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<path refid="build.classpath"/>
|
||||||
|
</classpath>
|
||||||
|
<exclude name="**/module-info.java"/>
|
||||||
|
</javac>
|
||||||
|
<!-- module-info.java built with source/target 9 -->
|
||||||
|
<javac destdir="${build.outputDir}"
|
||||||
|
nowarn="false"
|
||||||
|
debug="true"
|
||||||
|
encoding="utf-8"
|
||||||
|
optimize="false"
|
||||||
|
deprecation="true"
|
||||||
|
release="9"
|
||||||
|
verbose="false"
|
||||||
|
fork="false">
|
||||||
|
<modulepath>
|
||||||
|
<path refid="build.classpath"/>
|
||||||
|
<pathelement location="${build.outputDir}"/>
|
||||||
|
</modulepath>
|
||||||
|
<src>
|
||||||
|
<pathelement location="${build.srcDir}"/>
|
||||||
|
</src>
|
||||||
|
<include name="**/module-info.java"/>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Javadoc target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||||
|
<javadoc sourcepath="${build.srcDir}"
|
||||||
|
packagenames="*"
|
||||||
|
destdir="${reporting.outputDirectory}/apidocs"
|
||||||
|
access="protected"
|
||||||
|
source="${compiler.source}"
|
||||||
|
verbose="false"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
author="true"
|
||||||
|
splitindex="false"
|
||||||
|
nodeprecated="false"
|
||||||
|
nodeprecatedlist="false"
|
||||||
|
notree="false"
|
||||||
|
noindex="false"
|
||||||
|
nohelp="false"
|
||||||
|
nonavbar="false"
|
||||||
|
serialwarn="false"
|
||||||
|
charset="ISO-8859-1"
|
||||||
|
linksource="false"
|
||||||
|
breakiterator="false">
|
||||||
|
<classpath refid="build.classpath"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Package target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="package" depends="compile" description="Package the application">
|
||||||
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||||
|
compress="true"
|
||||||
|
index="false"
|
||||||
|
basedir="${build.outputDir}"
|
||||||
|
excludes="**/package.html">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Implementation-Title" value="${project.artifactId}"/>
|
||||||
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- A dummy target for the package named after the type it creates -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||||
|
|
||||||
|
</project>
|
@ -1,3 +1,43 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 10 14:48:25 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Upgrade to version 4.4.0
|
||||||
|
* Main features of 4.x
|
||||||
|
+ Predicates based claim verification
|
||||||
|
+ Support for Instant API and Lambda functions
|
||||||
|
+ Improved Exceptions API
|
||||||
|
+ Consistent null handling
|
||||||
|
* Breaking changes:
|
||||||
|
+ Make JWT constants final values
|
||||||
|
* Security:
|
||||||
|
+ Bump com.fasterxml.jackson.core:jackson-databind to 2.13.4.2
|
||||||
|
CVE-2022-42003
|
||||||
|
* Additions:
|
||||||
|
+ Add integration with our Shipping orb
|
||||||
|
+ Add Ship CLI support
|
||||||
|
+ Provide straightforward example for JWKS
|
||||||
|
* Changes:
|
||||||
|
+ Update to gradle 6.9.2
|
||||||
|
+ Update OSS plugin to latest
|
||||||
|
+ SDK-3466 Upgrade Codecov
|
||||||
|
+ Update README.md
|
||||||
|
+ Re-enable japicmp API diff checking
|
||||||
|
+ Update .shiprc to only update lib version in build.gradle
|
||||||
|
+ Optimise TokenUtils parsing
|
||||||
|
+ Update Circle Ship Orb configuration
|
||||||
|
+ Improve JWT parse/decode performance
|
||||||
|
+ Add support for passing json values for header and payload
|
||||||
|
+ Preserve insertion order for claims
|
||||||
|
+ Update Jackson to 2.14.2
|
||||||
|
* Fixed
|
||||||
|
+ Check for null token before splitting
|
||||||
|
+ [SDK-3816] Update docs for verification thread-safety
|
||||||
|
+ Update Claim#asString documentation
|
||||||
|
+ Fix for exp claim considered valid if equal to now
|
||||||
|
- Build also module-info.java useful for modular javas
|
||||||
|
- Change the build system to ant. Upstream anyway uses gradle and
|
||||||
|
ant is more flexible then maven for this case
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 26 04:35:00 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
Thu Oct 26 04:35:00 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package java-jwt
|
# spec file for package java-jwt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,20 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# The automatic requires would be java-headless >= 9, but the
|
||||||
|
# binaries are java 8 compatible
|
||||||
|
%define __requires_exclude java-headless
|
||||||
Name: java-jwt
|
Name: java-jwt
|
||||||
Version: 3.8.3
|
Version: 4.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Java JWT
|
Summary: Java JWT
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://github.com/auth0/%{name}
|
URL: https://github.com/auth0/%{name}
|
||||||
Source0: https://github.com/auth0/%{name}/archive/%{version}.tar.gz
|
Source0: https://github.com/auth0/%{name}/archive/%{version}.tar.gz
|
||||||
Source1: https://repo1.maven.org/maven2/com/auth0/%{name}/%{version}/%{name}-%{version}.pom
|
Source1: %{name}-build.xml
|
||||||
|
Source2: https://repo1.maven.org/maven2/com/auth0/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: jackson-annotations
|
||||||
BuildRequires: maven-local
|
BuildRequires: jackson-core
|
||||||
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
|
BuildRequires: jackson-databind
|
||||||
BuildRequires: mvn(commons-codec:commons-codec)
|
BuildRequires: java-devel >= 9
|
||||||
|
BuildRequires: javapackages-local >= 6
|
||||||
|
Requires: java-headless >= 1.8
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -44,30 +51,31 @@ API documentation for the Logback library
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
cp %{SOURCE1} lib/pom.xml
|
cp %{SOURCE1} lib/build.xml
|
||||||
|
|
||||||
%pom_xpath_remove pom:dependency/pom:scope lib
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd lib
|
mkdir -p lib/lib
|
||||||
%{mvn_build} -f -- \
|
build-jar-repository -s lib/lib jackson-annotations jackson-core jackson-databind
|
||||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
ant -f lib/build.xml jar javadoc
|
||||||
-Dmaven.compiler.release=8 \
|
|
||||||
%endif
|
|
||||||
-Dmaven.compiler.source=8 -Dmaven.compiler.target=8 -Dsource=8
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd lib
|
install -dm 0755 %{buildroot}%{_javadir}
|
||||||
%mvn_install
|
install -pm 0644 lib/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files -f lib/.mfiles
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||||
|
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}.pom %{name}.jar
|
||||||
|
|
||||||
|
install -dm 0755 %{buildroot}%{_javadocdir}
|
||||||
|
cp -r lib/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
%files javadoc -f lib/.mfiles-javadoc
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user