authclient: auto-detect https for a bare AUTHGUARD_URL host, extend Java client to full surface
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.
This commit is contained in:
1 parent
f164e0d0d2
commit
de9b599232
9 files changed
+697
-44
No files matched your search
@@ -26,9 +26,18 @@
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user