Skip to content

Commit 02fb249

Browse files
author
Dennis Labordus
committed
Sorry, back to OpenID Connect, feels better.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 5a7cfa9 commit 02fb249

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

app/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ SPDX-License-Identifier: Apache-2.0
6161
<groupId>io.quarkus</groupId>
6262
<artifactId>quarkus-resteasy</artifactId>
6363
</dependency>
64-
<dependency>
65-
<groupId>io.quarkus</groupId>
66-
<artifactId>quarkus-smallrye-jwt</artifactId>
67-
</dependency>
6864
<dependency>
6965
<groupId>io.quarkus</groupId>
7066
<artifactId>quarkus-smallrye-openapi</artifactId>
@@ -85,6 +81,10 @@ SPDX-License-Identifier: Apache-2.0
8581
<groupId>io.quarkus</groupId>
8682
<artifactId>quarkus-hibernate-validator</artifactId>
8783
</dependency>
84+
<dependency>
85+
<groupId>io.quarkus</groupId>
86+
<artifactId>quarkus-oidc</artifactId>
87+
</dependency>
8888

8989
<!-- Test Dependencies -->
9090
<dependency>
@@ -104,7 +104,7 @@ SPDX-License-Identifier: Apache-2.0
104104
</dependency>
105105
<dependency>
106106
<groupId>io.quarkus</groupId>
107-
<artifactId>quarkus-test-security</artifactId>
107+
<artifactId>quarkus-test-security-oidc</artifactId>
108108
<scope>test</scope>
109109
</dependency>
110110
<dependency>

app/src/main/resources/application.properties

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ basex.password = ${BASEX_PASSWORD:admin}
2222
%dev.quarkus.log.level = DEBUG
2323
%dev.quarkus.log.category."org.lfenergy.compas.scl.data".level = DEBUG
2424

25-
# Smallrye JWT Properties (Microprofile)
26-
smallrye.jwt.verify.key.location = ${JWT_VERIFY_KEY:http://localhost:8089/auth/realms/compas/protocol/openid-connect/certs}
27-
smallrye.jwt.path.groups = ${JWT_GROUPS_PATH:resource_access/scl-data-service/roles}
28-
mp.jwt.verify.issuer = ${JWT_VERIFY_ISSUER:http://localhost:8089/auth/realms/compas}
29-
mp.jwt.verify.audiences = ${JWT_VERIFY_CLIENT_ID:scl-data-service}
25+
# Open ID Connect
26+
quarkus.oidc.auth-server-url = ${AUTH_SERVER_URL:http://localhost:8089/auth/realms/compas}
27+
quarkus.oidc.client-id = ${AUTH_CLIENT_ID:scl-data-service}
28+
quarkus.oidc.application-type = service
3029

3130
quarkus.http.auth.permission.deny-default.paths=/*
3231
quarkus.http.auth.permission.deny-default.policy=deny

0 commit comments

Comments
 (0)