/// <summary>配置应用的权限信息</summary> /// <param name="applicationId">应用标识</param> /// <param name="authorityName">权限名称</param> /// <param name="scopeText">权限范围的文本</param> public void BindAuthorizationScopeObjects(string applicationId, string authorityName, string scopeText) { provider.BindAuthorizationScopeObjects(applicationId, authorityName, scopeText); // // [重点] // 设置完管理员后, 重置缓存数据. // ApplicationInfo configration = FindOne(applicationId); if (configration != null) { AppsSecurity.ResetApplicationAdministrators(configration.ApplicationName); } }