SaveApis.Framework

Documentation for SaveApis.Framework

View on GitHub

AuthorizationInstaller — Web

Key: Authorization
Default Enabled:
Package: SaveApis.Framework.Web


Purpose

Registers ASP.NET Core Authorization services and adds the UseAuthorization() middleware to the pipeline. Combined with AuthenticationInstaller, this enables policy-based and attribute-based access control on controllers and endpoints.


What It Does

Builder phase:

Application phase:


Dependencies

Dependency Direction Requirement Description
AuthenticationInstaller After Required Authentication must run before Authorization
ZitadelInstaller Before Required Zitadel must run after Authorization
ControllerInstaller Before Optional Controllers rely on authorization being present
OpenApiInstaller Before Optional  
ScalarInstaller Before Optional  

Configuration

This installer has no configuration options.


InstallerContext Extension

installer.WithAuthorization(bool enabled = true);

Notes