![]() |
VOOZH | about |
dotnet add package Authorization.Kentico.MVC.DynamicRouting --version 12.29.2
NuGet\Install-Package Authorization.Kentico.MVC.DynamicRouting -Version 12.29.2
<PackageReference Include="Authorization.Kentico.MVC.DynamicRouting" Version="12.29.2" />
<PackageVersion Include="Authorization.Kentico.MVC.DynamicRouting" Version="12.29.2" />Directory.Packages.props
<PackageReference Include="Authorization.Kentico.MVC.DynamicRouting" />Project file
paket add Authorization.Kentico.MVC.DynamicRouting --version 12.29.2
#r "nuget: Authorization.Kentico.MVC.DynamicRouting, 12.29.2"
#:package Authorization.Kentico.MVC.DynamicRouting@12.29.2
#addin nuget:?package=Authorization.Kentico.MVC.DynamicRouting&version=12.29.2Install as a Cake Addin
#tool nuget:?package=Authorization.Kentico.MVC.DynamicRouting&version=12.29.2Install as a Cake Tool
Kentico Authorization Attribute for Kentico MVC, provides a [KenticoAuthorize] Attribute that you can add to your ActionResult methods that can allows for permissions on:
Events section below)It also allows for a custom Unauthorized Redirect path in case you need to specify a specific location to send unauthorized users.
Authorization.Kentico.MVC NuGet Package to your MVC Site[KenticoAuthorize()] attributes to your ActionResult methods.[KenticoAuthorize()] Attribute to your ActionResult and pass in any properties you wish to configure.The Authorization Module has 4 events you can hook into in order to customize it's behavior.
This allows you to modify the retrieval of the current page. By default, it will try to find the page based on the relative path with a match on the NodeAliasPath.
This allows you to modify the retrieval of the current culture. This is used in the GetPage logic to get the proper TreeNode. By default, It will use the PreviewCulture (if in preview), LocalizationContext.CurrentCulture, and lastly the System.Globalization.CultureInfo.CurrentCulture.Name.
This allows you to modify the retrieval of the current user. By default it will use the HttpContext.User.Identity to get the UserName of the current user. Public is the default user if none found or the found user is disabled.
This allows you to modify the Authorizing logic itself. By default it will perform all the proper checks on User, Role, Module Permissions, Page ACL, and user allowed cultures. If you do overwrite, you must set SkipDefaultValidation to true in the AuthorizingEventArgs.
Can be used on any Kentico 12 SP site (hotfix 29 or above).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net461 net461 is compatible. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Error on Page ACL, did not include the NodeSiteID