- Java 98.5%
- Dockerfile 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* test: sync agate-realm.json with 14 A1-157 custom attributes (A1-157) Mirror the regenerated agate-realm.json from atlas-agate-local: 14 new single-valued profile attributes added to the declarative user profile. directAccessGrantsEnabled for the agate client stays true (this repo). * test: expose the 14 A1-157 custom attributes in userinfo (A1-157) Sync agate-realm.json with atlas-agate-local: add 14 userinfo-only attribute protocol mappers (add_to_userinfo=true, id/access=false) for the SOAP-API custom attributes to the agate and agridata clients. ./mvnw verify: green. --------- Co-authored-by: Burkard Adrian <adrian.burkadr@ti8m.ch> |
||
| .github/workflows | ||
| .mvn/wrapper | ||
| env | ||
| http | ||
| src | ||
| users | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| .owaspignore.xml | ||
| .releaserc.json | ||
| .trivyignore | ||
| CHANGELOG.md | ||
| checkstyle.xml | ||
| Dockerfile | ||
| mvnw | ||
| mvnw.cmd | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pom.xml | ||
| README.md | ||
🌿 Agate Test Backend
Simulates backends that validate Agate tokens. The service exposes the decoded token claims and user-info for the authenticated user, and serves as a reference implementation for Agate OIDC integration.
🚀 Getting Started
Run in dev mode
./mvnw quarkus:dev -Dquarkus.profile=local
🔐 Keycloak
By default the app connects to the Keycloak instance on the dev environment. Two alternatives:
| Option | How |
|---|---|
| 🖥️ Local Keycloak | Spin up via atlas-agate-local |
| 📦 Embedded Keycloak | Copy the OIDC config from application-test.yml into your local profile |
🧪 Tests
@QuarkusTest spins up a Keycloak container configured similarly to the real Agate realm, but without brokering authentication to eIAM. Tests can also be driven via Swagger UI or
the .http test files.
Heads-up when refreshing
src/test/resources/agate-realm.jsonfromatlas-agate-local: set"directAccessGrantsEnabled" : trueon theagridataclient. The Quarkus integration tests use the OAuth password grant to obtain tokens; without this flag Keycloak rejects the request with an HTML error page.
⚙️ GitHub Workflow
Uses the BLW shared workflow: atlas-code-github-workflows
✅ Checkstyle
Import the Checkstyle plugin in your IDE and point it at checkstyle.xml in the repository root to catch violations before pushing.
In the IDE Checkstyle settings, exclude SQL scripts:
*.{sql}
Run Checkstyle:
./mvnw checkstyle:check
🔖 Semantic Versioning
Versioning is driven by two files:
| File | Purpose |
|---|---|
package.json |
Pins the pnpm version used to run semantic-release |
.releaserc.json |
Configures branches, version strategy, and release steps |
🎨 ASCII Banner
Generated with manytools.org ASCII banner — font: Slant