File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
java/org/lfenergy/compas/scl/data/rest/v1 Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ SPDX-License-Identifier: Apache-2.0
61
61
<groupId >io.quarkus</groupId >
62
62
<artifactId >quarkus-resteasy</artifactId >
63
63
</dependency >
64
+ <dependency >
65
+ <groupId >io.quarkus</groupId >
66
+ <artifactId >quarkus-smallrye-jwt</artifactId >
67
+ </dependency >
64
68
<dependency >
65
69
<groupId >io.quarkus</groupId >
66
70
<artifactId >quarkus-smallrye-openapi</artifactId >
@@ -81,10 +85,6 @@ SPDX-License-Identifier: Apache-2.0
81
85
<groupId >io.quarkus</groupId >
82
86
<artifactId >quarkus-hibernate-validator</artifactId >
83
87
</dependency >
84
- <dependency >
85
- <groupId >io.quarkus</groupId >
86
- <artifactId >quarkus-oidc</artifactId >
87
- </dependency >
88
88
89
89
<!-- Test Dependencies -->
90
90
<dependency >
@@ -104,7 +104,7 @@ SPDX-License-Identifier: Apache-2.0
104
104
</dependency >
105
105
<dependency >
106
106
<groupId >io.quarkus</groupId >
107
- <artifactId >quarkus-test-security-oidc </artifactId >
107
+ <artifactId >quarkus-test-security</artifactId >
108
108
<scope >test</scope >
109
109
</dependency >
110
110
<dependency >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class CompasCommonResource {
32
32
@ Path ("/type/list" )
33
33
@ Produces (MediaType .APPLICATION_XML )
34
34
public TypeListResponse list () {
35
- // Retrieve the roles the loggedin user has.
35
+ // Retrieve the roles the logged in user has.
36
36
var roles = securityIdentity .getRoles ();
37
37
38
38
var response = new TypeListResponse ();
Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ basex.password = ${BASEX_PASSWORD:admin}
22
22
%dev.quarkus.log.level = DEBUG
23
23
%dev.quarkus.log.category."org.lfenergy.compas.scl.data".level = DEBUG
24
24
25
- # Open ID Connect
26
- quarkus.oidc.auth-server-url = ${AUTH_SERVER_URL:http://localhost:8080/auth/realms/compas}
27
- quarkus.oidc.client-id = ${AUTH_CLIENT_ID:scl-data-service}
28
- quarkus.oidc.application-type = service
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 = 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}
29
30
30
31
quarkus.http.auth.permission.deny-default.paths =/*
31
32
quarkus.http.auth.permission.deny-default.policy =deny
You can’t perform that action at this time.
0 commit comments