as a part of this question . is there any way to Enable Features Dynamically ?
What I'm trying to achieve is the same exact concept of Permissions in Orchard . Except that instead of restricting the user from using this features, i don't want them to be displayed in the front-end.
this still can be achieved using custom permissions BUT the different which i mentioned in question which is answered by ViRuSTriNiTy , the permissions is not instantiated Immediately but it will be received from a third-part API on the IAuthorizationServiceEventHandler
public void Complete(CheckAccessContext context)
{
/// get the permission for the current IUser via thirdpart API
/// Enable/Disable features depending on the response
}
say i will be receiving a json response like this below :
[{ "Permission": "Home" }, { "Permission": "Videos" }]