public ActionResult Authorise(string id) { AuthoriseModel model = new AuthoriseModel(); model.WebApplicationDisplayName = "Web SSO OAuth Viewer"; model.SignOnAttemptId = id; model.CancelAllowed = true; model.CaptchaRequired = true; model.AdditionalSecurityRequired = true; model.ResourceDisplayName = "Your Resource"; model.WebApplicationDisplayName = "Your Client Name"; model.EffectiveValidityPeriod = TimeSpan.FromDays(7); model.PermissionSetDescriptions = new string[] { "This is a sample permission", "This is also a sample permission" }; model.CaptchaTheme = CaptchaThemes.clean.ToString(); return View(model); }
public ActionResult Authorise(string id) { AuthoriseModel model = new AuthoriseModel(); model.WebApplicationDisplayName = "Web SSO OAuth Viewer"; model.SignOnAttemptId = id; model.CancelAllowed = true; model.CaptchaRequired = true; model.AdditionalSecurityRequired = true; model.ResourceDisplayName = "Your Resource"; model.WebApplicationDisplayName = "Your Client Name"; model.EffectiveValidityPeriod = TimeSpan.FromDays(7); model.PermissionSetDescriptions = new string[] { "This is a sample permission", "This is also a sample permission" }; model.CaptchaTheme = CaptchaThemes.clean.ToString(); return(View(model)); }