Skip to content

Commit

Permalink
Set AllowAnonymousExplicit = false
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Dec 27, 2023
1 parent 31f768a commit 18faff5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static CapOptions UseAbpDashboard(this CapOptions capOptions)
return capOptions.UseDashboard(options =>
{
options.AuthorizationPolicy = AbpEventBusCapDashboardModule.CapDashboardAuthenticationPolicy;
options.AllowAnonymousExplicit = false;
});
}

Expand All @@ -21,6 +22,7 @@ public static CapOptions UseAbpDashboard(this CapOptions capOptions, Action<Dash
{
dashboardOptions.AuthorizationPolicy =
AbpEventBusCapDashboardModule.CapDashboardAuthenticationPolicy;
dashboardOptions.AllowAnonymousExplicit = false;
};

return capOptions.UseDashboard(options);
Expand Down

0 comments on commit 18faff5

Please sign in to comment.