A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
Hi Greg!
You can implement the ICustomPluginLoader interface on your plugin and in its implementaiton perform the needed checks
and return an empty array of PlugInDescriptor if your security checks doesnt validate, something like this:
[GuiPlugIn( ... )]
public partial class MyGuiPlugin : UserControlBase, ICustomPlugInLoader
{
public PlugInDescriptor[] List()
{
if(!PrincipalInfo.HasAdminAccess)
{
return new PlugInDescriptor[0];
}
return new PlugInDescriptor[1]{ PlugInDescriptor.Load(typeof(MyGuiPlugin)) };
}
...
}
/johan
Is it possible to lock down a GUI Plugin so that only specific users or roles can access it?
This is beyond the functionality provided by the RequiredAccess property of the GuiPlugIn attribute.