External Login Provider

Is there any way to switch on and off a custom plugin in Umbraco, I have created my own Active Directory plugin, I worked out how to switch on and off Umbraco Login, but I like to work out a way to switch off this plugin, if they decide to not use AD.

I know I can remove the umbraco-package.json or rename it.

But I like a cleaner way of doing this.

May be by setting a value in the app settings file.

Thanks

Darren

Hi @darrenhunterEmerald ,

Please checkout this: Battle scarred developer's guide to Umbraco v17 - Setup - DEV Community

There’s something called IPackageManifestReader which allows to register a package via backend code, we can definitely use the appsetting value to set the switch as on and off and accordingly register the package.

Hope it helps!

Regards,
Shekhar