Skip to content

Commit

Permalink
Merge pull request #146 from paulrobinson/patch-4
Browse files Browse the repository at this point in the history
Specified @RequestScoped to SecureResource
  • Loading branch information
geoand committed May 29, 2024
2 parents b0ff4b3 + ce02599 commit 459c010
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions documentation/modules/ROOT/pages/12_security.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ package com.redhat.developers;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.enterprise.context.RequestScoped;
import org.eclipse.microprofile.jwt.Claim;
import org.eclipse.microprofile.jwt.Claims;
@Path("secure")
@RequestScoped
public class SecureResource {
@Claim(standard = Claims.preferred_username)
Expand Down Expand Up @@ -184,10 +187,13 @@ import jakarta.annotation.security.RolesAllowed;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.enterprise.context.RequestScoped;
import org.eclipse.microprofile.jwt.Claim;
import org.eclipse.microprofile.jwt.Claims;
@Path("/secure")
@RequestScoped
public class SecureResource {
@Claim(standard = Claims.preferred_username)
Expand Down Expand Up @@ -233,10 +239,13 @@ import jakarta.annotation.security.RolesAllowed;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.enterprise.context.RequestScoped;
import org.eclipse.microprofile.jwt.Claim;
import org.eclipse.microprofile.jwt.Claims;
@Path("/secure")
@RequestScoped
public class SecureResource {
@Claim(standard = Claims.preferred_username)
Expand Down

0 comments on commit 459c010

Please sign in to comment.