When I test my component interface, why do I get a "Not Authorized" error?

You see this error mostly when you have created a new CI and try to test it in CI validator.

This error is coming up because you have not set security for the CI. To resolve this error, open a permission list and select all the methods for this particular CI in the Component Interface tab of the permission list. Make sure that the permission list is added to a role which the logged in user is associated with.