/gotrue-java

A Java client library for the GoTrue API.

Primary LanguageJavaMIT LicenseMIT

gotrue-java WIP CI codecov

A Java client library for the GoTrue API.

Installation

WIP

Configuration

Via properties file or environment variables. If both are specified the ones from the environment are used.

Environment

Url of the GoTrue Server.

GOTRUE_URL=https://...

Default headers that are included with every request to the API.

GOTRUE_HEADERS=MyHeader=MyValue, Header2=Val
// or
GOTRUE_HEADERS=MyHeader:MyValue, Header2:Val

The GoTrue JWT secret to validate jwt Tokens.

GOTRUE_JWT_SECRET=superSecretJwtToken

Properties

Url of the GoTrue Server.

gotrue.url=https://...

Default headers that are included with every request to the API.

gotrue.headers=MyHeader:MyValue, Header2:Val
// or
gotrue.headers=MyHeader=MyValue, Header2=Val

The GoTrue JWT secret to validate jwt Tokens.

gotrue.jwt.secret=superSecretJwtToken

Documentation

ToDo

  • [ ] support OAuth
  • deploy to maven
  • deploy to gradle?

Development

Start infrastructure for testing.

cd infra
docker compose up