Skip to content
Discussion options

You must be logged in to vote

Hi @jonasboman

You can change the access to both modules by providing an authentication policy in startup.cs for this very reason. You don't need to delete the modules folder at all.

services.AddStottSecurity(cspSetupOptions =>
{
    cspSetupOptions.ConnectionStringName = "EPiServerDB";
},
authorizationOptions => 
{
    authorizationOptions.AddPolicy(CspConstants.AuthorizationPolicy, policy =>
    {
        // Add this line if you are using Opti Id
        policy.AddAuthenticationSchemes(OptimizelyIdentityDefaults.SchemeName);

        // Set your authorisation policy here to change who can access the security module
        policy.RequireRole("SecurityAdmin");
    });
});

services.AddRo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GeekInTheNorth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants