Skip to main content

Authorization maps

wyStack apps are using Authorization Maps to provide the (Angular/Flutter) User Interface with information which features are enabled and which are not. This Authorization Map is a simple JSON structure, based on C# objects.
When Authorization Maps are disabled, all features are always enabled.

Enabling authorization maps

Enabling the Authorization Maps feature requires you to implement the OnRequestAuthorizationMaps of the IHandlerService in the ASP.NET Core API. You can return an authorization map based on the current user logged on. How your authorization structure is modelled in the database is up to you.

Note: when you enable Authorization Maps and you don't provide any Authorization Map through your API: all features are disabled!

Feature keys

A list of available feature keys is automatically generated as part of the NgLayer project: featurekeys.md