No authorization annotation found on plugin resource

Hi, when installing a plugin and trying to use a java class containing REST API, I get the following error when sending Postman requests using basic auth:


What does the error mean exactly, regarding sailpoint.rest.plugin.PluginResourceUtil? I am using authorization annotations in my class, like so, tried both with @AllowAll and @RequiredRight(KPI Administrator":

And my restResource in manifest.xml:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

Hi! I realize it’s probably a bit late, but I probably have the answer to this, because we just had the same problem at a customer.

The issue was that identityiq.jar (or at least some of the classes) ended up within the Plugin ZIP, under /jars. (The whole ZIP was like 100 MB.)

Because of this, the sailpoint.rest.plugin.AllowAll class ended up both places - the top level IIQ classloader and the Plugin classloader. In that situation, there are two, separate, independent classes with that name, and they’re not the same class.

@AllowAll // <-- This is the PLUGIN CLASSLOADER version
public Response pluginMethod() {
   // Your stuff
}

So, check your ZIP file to see if it has spurious JARs in it. It really should have only your plugin JAR, you direct dependencies that aren’t included with IIQ, and your UI and artifact elements.

1 Like