HMAC authentication for RESTful web applications
- Added secure HTTPs destination option to hmac auth proxy application
- Fixed bug DateTimeParseException when validating hmac requests with version 2.3.0 #23
- Throw explicit exception if no secretKey is provided #25
Remove dependency of joda-time library and use java.time package instead.
By that Java8 is required to use this library.
Add property based user repository (PropertyUserRepository). You can inject a json file with the following structure:
[
{
"user": "user1",
"password": "password1",
"roles": [
"role1"
]
},
{
"user": "user2",
"password": "password2",
"roles": [
"role1",
"role2"
]
},
{
"user": "user3",
"password": "password3",
"roles": []
}
]
Separation of hmac-auth-server and spring configuration.
- New module
hmac-auth-server-spring
which holds the configuration of the hmac-auth-server module. - hmac-auth-server: Extraction of spring dependencies
If you have used the hmac-auth-server
module, please switch to the hmac-auth-server-spring
dependency instead.
Repository:
<repositories>
<repository>
<id>central</id>
<url>http://repo1.maven.org/maven2/</url>
</repository>
</repositories>
Dependency:
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-server</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-client</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-proxy</artifactId>
<version>1.2.1</version>
</dependency>
Repository:
repositories {
mavenCentral()
}
Dependency:
dependencies {
compile ("de.otto:hmac-auth-server:1.2.1")
compile ("de.otto:hmac-auth-client:1.2.1")
compile ("de.otto:hmac-auth-proxy:1.2.1")
}
Repository:
<repositories>
<repository>
<id>SonatypeSnapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
Dependency:
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-server</artifactId>
<version>1.2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-client</artifactId>
<version>1.2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.otto</groupId>
<artifactId>hmac-auth-proxy</artifactId>
<version>1.2.1-SNAPSHOT</version>
</dependency>
Repository:
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
Dependency:
dependencies {
compile ("de.otto:hmac-auth-server:1.2.1-SNAPSHOT")
compile ("de.otto:hmac-auth-client:1.2.1-SNAPSHOT")
compile ("de.otto:hmac-auth-proxy:1.2.1-SNAPSHOT")
}