@@ -98,10 +98,13 @@ package com.redhat.developers;
9898import jakarta.ws.rs.GET;
9999import jakarta.ws.rs.Path;
100100
101+ import jakarta.enterprise.context.RequestScoped;
102+
101103import org.eclipse.microprofile.jwt.Claim;
102104import org.eclipse.microprofile.jwt.Claims;
103105
104106@Path("secure")
107+ @RequestScoped
105108public class SecureResource {
106109
107110 @Claim(standard = Claims.preferred_username)
@@ -184,10 +187,13 @@ import jakarta.annotation.security.RolesAllowed;
184187import jakarta.ws.rs.GET;
185188import jakarta.ws.rs.Path;
186189
190+ import jakarta.enterprise.context.RequestScoped;
191+
187192import org.eclipse.microprofile.jwt.Claim;
188193import org.eclipse.microprofile.jwt.Claims;
189194
190195@Path("/secure")
196+ @RequestScoped
191197public class SecureResource {
192198
193199 @Claim(standard = Claims.preferred_username)
@@ -233,10 +239,13 @@ import jakarta.annotation.security.RolesAllowed;
233239import jakarta.ws.rs.GET;
234240import jakarta.ws.rs.Path;
235241
242+ import jakarta.enterprise.context.RequestScoped;
243+
236244import org.eclipse.microprofile.jwt.Claim;
237245import org.eclipse.microprofile.jwt.Claims;
238246
239247@Path("/secure")
248+ @RequestScoped
240249public class SecureResource {
241250
242251 @Claim(standard = Claims.preferred_username)
0 commit comments