Skip to content

Commit 149162a

Browse files
authored
Specified @RequestScoped to SecureResource
@claim must be injected into @ApplicationScoped or @singleton scoped beans. See: quarkusio/quarkus#36183
1 parent 936b388 commit 149162a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

documentation/modules/ROOT/pages/12_security.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,13 @@ package com.redhat.developers;
9898
import jakarta.ws.rs.GET;
9999
import jakarta.ws.rs.Path;
100100
101+
import jakarta.enterprise.context.RequestScoped;
102+
101103
import org.eclipse.microprofile.jwt.Claim;
102104
import org.eclipse.microprofile.jwt.Claims;
103105
104106
@Path("secure")
107+
@RequestScoped
105108
public class SecureResource {
106109
107110
@Claim(standard = Claims.preferred_username)

0 commit comments

Comments
 (0)