Skip to content

Commit 765ac15

Browse files
author
Rob Tjalma
authored
Merge pull request #60 from com-pas/update-readme
Update README.md
2 parents 45c5598 + 6827a57 commit 765ac15

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SPDX-License-Identifier: Apache-2.0
1616
You can run your application in dev mode that enables live coding using:
1717

1818
```shell script
19-
./mvnw package io.quarkus:quarkus-maven-plugin:2.4.1.Final:dev
19+
./mvnw package io.quarkus:quarkus-maven-plugin::dev
2020
```
2121

2222
> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
@@ -29,8 +29,8 @@ The application can be packaged using:
2929
./mvnw package
3030
```
3131

32-
It produces the `quarkus-run.jar` file in the `app/target/quarkus-app/` directory. Be aware that it’s not an _über-jar_ as
33-
the dependencies are copied into the `app/target/quarkus-app/lib/` directory.
32+
It produces the `quarkus-run.jar` file in the `app/target/quarkus-app/` directory. Be aware that it’s not an _über-jar_
33+
as the dependencies are copied into the `app/target/quarkus-app/lib/` directory.
3434

3535
If you want to build an _über-jar_, execute the following command:
3636

@@ -56,5 +56,28 @@ Or, if you don't have GraalVM installed, you can run the native executable build
5656

5757
You can then execute your native executable with: `./app/target/code-with-quarkus-local-SNAPSHOT-runner`
5858

59-
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html.
59+
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html
60+
.
6061

62+
## Environment variables
63+
64+
Below environment variable(s) can be used to configure which claims are used to fill user information, for instance Who
65+
in History Record.
66+
67+
| Environment variable | Java Property | Description | Example |
68+
|------------------------|-------------------------------|-----------------------------------------------|---------|
69+
| USERINFO_WHO_CLAIMNAME | compas.userinfo.who.claimname | The Name of the user used in the Who History. | name |
70+
71+
## Security
72+
73+
To use most of the endpoints the users needs to be authenticated using JWT in the authorization header. There are 4
74+
environment variables that can be set in the container to configure the validation/processing of the JWT.
75+
76+
| Environment variable | Java Property | Description | Example |
77+
|----------------------|----------------------------------|----------------------------------------------------|------------------------------------------------------------------------|
78+
| JWT_VERIFY_KEY | smallrye.jwt.verify.key.location | Location of certificates to verify the JWT. | http://localhost:8089/auth/realms/compas/protocol/openid-connect/certs |
79+
| JWT_VERIFY_ISSUER | mp.jwt.verify.issuer | The issuer of the JWT. | http://localhost:8089/auth/realms/compas |
80+
| JWT_VERIFY_CLIENT_ID | mp.jwt.verify.audiences | The Client ID that should be in the "aud" claim. | scl-auto-alignment |
81+
| JWT_GROUPS_PATH | smallrye.jwt.path.groups | The JSON Path where to find the roles of the user. | resource_access/scl-auto-alignment/roles |
82+
83+
There are no roles defined in this service, only need to be authenticated.

0 commit comments

Comments
 (0)