File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
apps/backend-api-quarkus/src/main/java/com/acme/backend/quarkus/users Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
package com .acme .backend .quarkus .users ;
2
2
3
3
import io .quarkus .security .Authenticated ;
4
- import org .eclipse .microprofile .jwt .JsonWebToken ;
5
- import org .jboss .logging .Logger ;
6
- import org .jboss .resteasy .spi .HttpRequest ;
7
-
8
4
import jakarta .annotation .security .RolesAllowed ;
9
5
import jakarta .inject .Inject ;
10
6
import jakarta .ws .rs .GET ;
15
11
import jakarta .ws .rs .core .MediaType ;
16
12
import jakarta .ws .rs .core .SecurityContext ;
17
13
import jakarta .ws .rs .core .UriInfo ;
14
+ import org .eclipse .microprofile .jwt .JsonWebToken ;
15
+ import org .jboss .logging .Logger ;
16
+ import org .jboss .resteasy .spi .HttpRequest ;
17
+
18
18
import java .time .Instant ;
19
19
import java .util .HashMap ;
20
- import java .util .List ;
21
20
import java .util .Map ;
22
21
23
22
@ Path ("/api/users" )
@@ -74,8 +73,7 @@ public Object claims(
74
73
);
75
74
76
75
var acmeData = new HashMap <String , Object >();
77
- acmeData .put ("roles" , List .of (clientId + "_user" ));
78
- acmeData .put ("foo" , "bar" );
76
+ acmeData .put ("hello" , "world" );
79
77
80
78
return Map .of ("acme" , acmeData );
81
79
}
You can’t perform that action at this time.
0 commit comments