time4tea / biscuit-java

Java implementation of the Biscuit authentication and authorization token

Home Page:https://github.com/CleverCloud/biscuit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

biscuit-java

Tests

Central Version Nexus Version

Biscuit's Java library implementation.

This API implements Biscuit 2.0.

Usage

<!-- https://mvnrepository.com/artifact/org.biscuitsec/biscuit -->
<dependency>
    <groupId>org.biscuitsec</groupId>
    <artifactId>biscuit</artifactId>
    <version>@VERSION@</version>
</dependency>

Development

Requirements

  • JDK v11
  • the Protobuf compiler command protoc v3+ is required in $PATH.

Build

mvn clean install
# skip tests
mvn clean install -DskipTests

Publish

Release process

mvn versions:set -DnewVersion=<NEW-VERSION>

Commit and tag the version. Then push and create a GitHub release.

Finally, publishing to Nexus and Maven Central is automatically triggered by creating a GitHub release using GitHub Actions.

mvn versions:set -DnewVersion=<NEW-VERSION With Minor +1 and -SNAPSHOT>

Commit and push.

GitHub Actions Requirements

Publish requires following secrets:

  • OSSRH_USERNAME the Sonatype username
  • OSSRH_TOKEN the Sonatype token
  • OSSRH_GPG_SECRET_KEY the gpg private key used to sign packages
  • OSSRH_GPG_SECRET_KEY_PASSWORD the gpg private key password

These are stored in GitHub organisation's secrets.

About

Java implementation of the Biscuit authentication and authorization token

https://github.com/CleverCloud/biscuit

License:Apache License 2.0


Languages

Language:Java 100.0%