-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add-on controller is not called #776
Comments
By default the module system does not autodiscover. You can either turn on autodiscover services.Configure<ProtectedModuleOptions>(x => x.AutoDiscovery = EPiServer.Shell.Configuration.AutoDiscoveryLevel.Modules); or register manually like services.Configure<ProtectedModuleOptions>(x =>
{
if (!x.Items.Any(x => x.Name.Equals("MyEPiModule")))
{
x.Items.Add(new ModuleDetails
{
Name = "MyEPiModule"
});
}
}); |
It works! Thank you @lunchin! |
Found out one more issue.
in browser.
doesn't work for me. |
In foundation https://github.com/episerver/Foundation/blob/main/src/Foundation/Startup.cs#L118 we register episerver.openconnect To get a token http://localhost:50244/epi/episerver/connect/token grant_type=client_credentials |
@lunchin yes, it works fine. epi/episerver/connect/token gives me accessToken. I use them as |
Ahh I think the module has a default policy of "Cms Admins" when not configured in module.config. We plan to add ACL support for applications in future version, which can help with permissions. I think you can test bow using grant_type password with a admin user grant_type=password |
Hi @lunchin
and |
okay i will put a sample together today |
Hi there,
I built a simple Add-on, installed them to Foundation NET5 Core, but it doesn't work.
I'm not sure it is mine issue, or Foundation/EPi12.
Ok, my add-on has only one class
It depends on EPiServer.CMS 12.2.1 only.
module.config is simple
I put MyEPiModule.dll to
bin
folder near Foundation.dll. module.config is put under /modules/_protected/MyEPiModule.Requests /episerver/myepimodule/hello/index and /episerver/myepimodule/hello/show response HTTP404 Not Found.
In EPi11 I had to desribe my add-on in web.config. But it is obsolete for Foundation NET5 Core (according to EPi doc).
Am I missed something? Are there additional steps for registering add-on in Foundation/EPi12?
The text was updated successfully, but these errors were encountered: