protected void Page_Load(object sender, EventArgs e)
 {
     var rublon = new Rublon2Factor(Globals.SystemToken, Globals.SecretKey);
     var client = new GetAvailableFeatures(rublon);
     client.Perform();
     var features = client.GetFeatures();
     lbForceMobileApp.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_FORCE_MOBILE_APP) ? "<b>Active</b>" : "Not active";
     lbIgnoreTrustedDevice.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_IGNORE_TRUSTED_DEVICE) ? "<b>Active</b>" : "Not active";
     lbOperationConfirmation.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_OPERATION_CONFIRMATION) ? "<b>Active</b>" : "Not active";
     lbBufferedConfirmation.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_BUFFERED_CONFIRMATION) ? "<b>Active</b>" : "Not active";
     lbIdentityProviding.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_IDENTITY_PROVIDING) ? "<b>Active</b>" : "Not active";
     lbRemoteLogout.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_REMOTE_LOGOUT) ? "<b>Active</b>" : "Not active";
     lbBussinessEdition.Text = features.Value<bool>(GetAvailableFeatures.FEATURE_BUSINNESS_EDITION) ? "<b>Active</b>" : "Not active";
 }
 public ActionResult ActiveFeatures()
 {
     var rublon = new Rublon2Factor(Globals.SystemToken, Globals.SecretKey);
     var client = new GetAvailableFeatures(rublon);
     client.Perform();
     var features = client.GetFeatures();
     ViewBag.ForceMobileApp = features.Value<bool>(GetAvailableFeatures.FEATURE_FORCE_MOBILE_APP);
     ViewBag.IgnoreTrustedDevice = features.Value<bool>(GetAvailableFeatures.FEATURE_IGNORE_TRUSTED_DEVICE);
     ViewBag.OperationConfirmation = features.Value<bool>(GetAvailableFeatures.FEATURE_OPERATION_CONFIRMATION);
     ViewBag.BufferedConfirmation = features.Value<bool>(GetAvailableFeatures.FEATURE_BUFFERED_CONFIRMATION);
     ViewBag.IdentityProviding = features.Value<bool>(GetAvailableFeatures.FEATURE_IDENTITY_PROVIDING);
     ViewBag.RemoteLogout = features.Value<bool>(GetAvailableFeatures.FEATURE_REMOTE_LOGOUT);
     ViewBag.BussinesEdition = features.Value<bool>(GetAvailableFeatures.FEATURE_BUSINNESS_EDITION);
     return View();
 }