File tree Expand file tree Collapse file tree
documentation/modules/ROOT/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,10 +187,13 @@ import jakarta.annotation.security.RolesAllowed;
187187import jakarta.ws.rs.GET;
188188import jakarta.ws.rs.Path;
189189
190+ import jakarta.enterprise.context.RequestScoped;
191+
190192import org.eclipse.microprofile.jwt.Claim;
191193import org.eclipse.microprofile.jwt.Claims;
192194
193195@Path("/secure")
196+ @RequestScoped
194197public class SecureResource {
195198
196199 @Claim(standard = Claims.preferred_username)
@@ -236,10 +239,13 @@ import jakarta.annotation.security.RolesAllowed;
236239import jakarta.ws.rs.GET;
237240import jakarta.ws.rs.Path;
238241
242+ import jakarta.enterprise.context.RequestScoped;
243+
239244import org.eclipse.microprofile.jwt.Claim;
240245import org.eclipse.microprofile.jwt.Claims;
241246
242247@Path("/secure")
248+ @RequestScoped
243249public class SecureResource {
244250
245251 @Claim(standard = Claims.preferred_username)
You can’t perform that action at this time.
0 commit comments