Im having some trouble with my current project where im trying to add an admin plugin.
When im trying to access the page in admin mode I just get redirected to the startpage. This seems to happend regardless if its a new adminplugin or an existing one like the SearchEngineSitemap plugin so theres nothing wrong with the plugin itself. It only seems to happen when i inherit from SystemPageBase but after looking at the code for SystemPageBase im not sure why.
I have been looking at the configuration for a while now without finding any solutions. Any tips on what to look at?
Might be that you need to take a look at the roles "behind" CmsAdmins and CmsEditors...
<add name="CmsAdmins" type="EPiServer.Security.MappedRole, EPiServer"
roles="WebAdmins, Administrators" mode="Any" />
<add name="CmsEditors" type="EPiServer.Security.MappedRole, EPiServer"
roles="WebEditors" mode="Any" />
Im not quite sure what you mean could be wrong with the mapped roles but it is configured as your example, the default configuration. The roles exist and seem to be working.
I have seen that places like the search settings admin view have "CmsAdmins" auth checks inside EPiServer's code so I thought that could be a possibility somewhere inside SystemPageBase as well.