Annotation Interface RolesAllowed


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface RolesAllowed
The caller must hold at least one of these roles, as decided by the configured RoleResolver. Implies Authenticated.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names of the path or query parameters (tool arguments on MCP) that identify the resource the role is held on — on = "project" checks the role on /projects/{project}.
  • Element Details

    • value

      String[] value
    • on

      String[] on
      Names of the path or query parameters (tool arguments on MCP) that identify the resource the role is held on — on = "project" checks the role on /projects/{project}.
      Default:
      {}