AUTHGUARD_URL only needs to name a host/IP now - all four language clients (Go/Node/Python/Java) assume https:// when no scheme is given, so a bare value like 192.168.1.50:8080 works instead of failing outright; an explicit http://scheme is still left alone for local/LAN deployments. Java's AuthClient was validate-only; it now mirrors the Go/Node/Python clients' full surface (register/login/logout/me/totp*/passwordReset*/ managedUsers*/setupStatus) using Jackson for the request/response JSON this larger surface has to build and parse, since MegaBasterd (this package's only verified consumer) already depends on Jackson.
59 lines
2.6 KiB
XML
59 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.gabriel20xx.shared</groupId>
|
|
<artifactId>java-backend</artifactId>
|
|
<version>0.1.0</version>
|
|
<packaging>jar</packaging>
|
|
<name>java-backend</name>
|
|
<description>Shared account-management, TOTP, admin reset-code, and AuthGuard client primitives for Java services.</description>
|
|
|
|
<!--
|
|
This pom.xml exists only so this package can be built and tested on
|
|
its own (mirroring @gabriel20xx/node-backend's package.json and
|
|
python-backend's pyproject.toml). It is not how the real,
|
|
already-identified consumer of this package - MegaBasterd - uses it:
|
|
MegaBasterd/pom.xml instead adds src/main/java as an extra source
|
|
directory of its own build via build-helper-maven-plugin, compiling
|
|
this source straight into its jar with no dependency on this
|
|
artifact. That is also why maven.compiler.source/target below is
|
|
pinned to 1.8 - it must match MegaBasterd/pom.xml's
|
|
<maven.compiler.source>/<target>, since both poms compile the exact
|
|
same .java files.
|
|
-->
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<junit.version>5.10.2</junit.version>
|
|
<!-- Pinned to match MegaBasterd/pom.xml's jackson-databind version - both
|
|
poms compile the exact same AuthClient.java, which now builds/parses
|
|
JSON via Jackson for its full (non-validate-only) method surface. -->
|
|
<jackson.version>2.18.6</jackson.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.2.5</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|