Package dev.relism.flash.ext.oidc
Annotation Interface ScopesAllowed
Restricts a handler to callers whose token carries the required OAuth2 scopes.
Authentication is implicitly required.
Scopes are resolved from the configured claim paths in
OidcConfig.scopeClaimPaths() (default: "scope,scp") and support
both standard formats:
scope: space-separated stringscp: string list (or string)
@Route(method = HttpMethod.GET, path = "/api/orders")
@ScopesAllowed("orders:read")
public class ListOrders extends JacksonHandler { ... }
@Route(method = HttpMethod.POST, path = "/api/orders")
@ScopesAllowed(value = {"orders:write", "payments:write"}, match = ScopesAllowed.Match.ANY)
public class CreateOrder extends JacksonHandler { ... }
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valueRequired scopes. -
match
ScopesAllowed.Match matchMatching mode forvalue().- Default:
ALL
-