Permalink
Browse files

Initial not quite working

  • Loading branch information...
shanselman committed Sep 28, 2012
1 parent 518e2a0 commit 7707c8dabf9e6538e0a9aa07e2e8c8da8b1e6ebd
Showing with 35,394 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +20 −0 MVC4/PersonaMVC4Example.sln
  3. +32 −0 MVC4/PersonaMVC4Example/App_Start/AuthConfig.cs
  4. +45 −0 MVC4/PersonaMVC4Example/App_Start/BundleConfig.cs
  5. +13 −0 MVC4/PersonaMVC4Example/App_Start/FilterConfig.cs
  6. +25 −0 MVC4/PersonaMVC4Example/App_Start/RouteConfig.cs
  7. +28 −0 MVC4/PersonaMVC4Example/App_Start/WebApiConfig.cs
  8. +756 −0 MVC4/PersonaMVC4Example/Content/Site.css
  9. +237 −0 MVC4/PersonaMVC4Example/Content/persona-buttons.css
  10. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
  11. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
  12. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
  13. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
  14. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png
  15. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
  16. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
  17. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  18. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-icons_222222_256x240.png
  19. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-icons_2e83ff_256x240.png
  20. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-icons_454545_256x240.png
  21. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-icons_888888_256x240.png
  22. BIN MVC4/PersonaMVC4Example/Content/themes/base/images/ui-icons_cd0a0a_256x240.png
  23. +466 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery-ui.css
  24. +19 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.accordion.css
  25. +11 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.all.css
  26. +53 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.autocomplete.css
  27. +21 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.base.css
  28. +38 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.button.css
  29. +38 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.core.css
  30. +68 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.datepicker.css
  31. +21 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.dialog.css
  32. +11 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.progressbar.css
  33. +20 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.resizable.css
  34. +10 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.selectable.css
  35. +24 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.slider.css
  36. +18 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.tabs.css
  37. +247 −0 MVC4/PersonaMVC4Example/Content/themes/base/jquery.ui.theme.css
  38. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png
  39. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png
  40. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png
  41. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png
  42. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png
  43. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png
  44. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png
  45. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  46. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-icons_222222_256x240.png
  47. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-icons_2e83ff_256x240.png
  48. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-icons_454545_256x240.png
  49. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-icons_888888_256x240.png
  50. BIN MVC4/PersonaMVC4Example/Content/themes/base/minified/images/ui-icons_cd0a0a_256x240.png
  51. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery-ui.min.css
  52. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.accordion.min.css
  53. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.autocomplete.min.css
  54. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.button.min.css
  55. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.core.min.css
  56. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.datepicker.min.css
  57. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.dialog.min.css
  58. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.progressbar.min.css
  59. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.resizable.min.css
  60. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.selectable.min.css
  61. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.slider.min.css
  62. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.tabs.min.css
  63. +5 −0 MVC4/PersonaMVC4Example/Content/themes/base/minified/jquery.ui.theme.min.css
  64. +407 −0 MVC4/PersonaMVC4Example/Controllers/AccountController.cs
  65. +32 −0 MVC4/PersonaMVC4Example/Controllers/HomeController.cs
  66. +26 −0 MVC4/PersonaMVC4Example/Controllers/PersonaController.cs
  67. +50 −0 MVC4/PersonaMVC4Example/Filters/InitializeSimpleMembershipAttribute.cs
  68. +1 −0 MVC4/PersonaMVC4Example/Global.asax
  69. +28 −0 MVC4/PersonaMVC4Example/Global.asax.cs
  70. BIN MVC4/PersonaMVC4Example/Images/Thumbs.db
  71. BIN MVC4/PersonaMVC4Example/Images/accent.png
  72. BIN MVC4/PersonaMVC4Example/Images/bullet.png
  73. BIN MVC4/PersonaMVC4Example/Images/heroAccent.png
  74. BIN MVC4/PersonaMVC4Example/Images/orderedList0.png
  75. BIN MVC4/PersonaMVC4Example/Images/orderedList1.png
  76. BIN MVC4/PersonaMVC4Example/Images/orderedList2.png
  77. BIN MVC4/PersonaMVC4Example/Images/orderedList3.png
  78. BIN MVC4/PersonaMVC4Example/Images/orderedList4.png
  79. BIN MVC4/PersonaMVC4Example/Images/orderedList5.png
  80. BIN MVC4/PersonaMVC4Example/Images/orderedList6.png
  81. BIN MVC4/PersonaMVC4Example/Images/orderedList7.png
  82. BIN MVC4/PersonaMVC4Example/Images/orderedList8.png
  83. BIN MVC4/PersonaMVC4Example/Images/orderedList9.png
  84. BIN MVC4/PersonaMVC4Example/Images/personasinginbutton.png
  85. +176 −0 MVC4/PersonaMVC4Example/ModelBinders/SimplePostVariableParameterBinding.cs
  86. +20 −0 MVC4/PersonaMVC4Example/ModelBinders/SimplePostVariableParameterBindingAttribute.cs
  87. +97 −0 MVC4/PersonaMVC4Example/Models/AccountModels.cs
  88. +330 −0 MVC4/PersonaMVC4Example/PersonaMVC4Example.csproj
  89. +31 −0 MVC4/PersonaMVC4Example/PersonaMVC4Example.csproj.user
  90. +35 −0 MVC4/PersonaMVC4Example/Properties/AssemblyInfo.cs
  91. BIN MVC4/PersonaMVC4Example/Scripts/_references.js
  92. +2,521 −0 MVC4/PersonaMVC4Example/Scripts/jquery-1.7.1.intellisense.js
  93. +9,266 −0 MVC4/PersonaMVC4Example/Scripts/jquery-1.7.1.js
  94. +4 −0 MVC4/PersonaMVC4Example/Scripts/jquery-1.7.1.min.js
  95. +11,464 −0 MVC4/PersonaMVC4Example/Scripts/jquery-ui-1.8.20.js
  96. +5 −0 MVC4/PersonaMVC4Example/Scripts/jquery-ui-1.8.20.min.js
  97. +163 −0 MVC4/PersonaMVC4Example/Scripts/jquery.unobtrusive-ajax.js
  98. +5 −0 MVC4/PersonaMVC4Example/Scripts/jquery.unobtrusive-ajax.min.js
  99. +1,291 −0 MVC4/PersonaMVC4Example/Scripts/jquery.validate-vsdoc.js
  100. +1,186 −0 MVC4/PersonaMVC4Example/Scripts/jquery.validate.js
  101. +49 −0 MVC4/PersonaMVC4Example/Scripts/jquery.validate.min.js
  102. +365 −0 MVC4/PersonaMVC4Example/Scripts/jquery.validate.unobtrusive.js
  103. +5 −0 MVC4/PersonaMVC4Example/Scripts/jquery.validate.unobtrusive.min.js
  104. +3,443 −0 MVC4/PersonaMVC4Example/Scripts/knockout-2.1.0.debug.js
  105. +86 −0 MVC4/PersonaMVC4Example/Scripts/knockout-2.1.0.js
  106. +1,265 −0 MVC4/PersonaMVC4Example/Scripts/modernizr-2.5.3.js
  107. +36 −0 MVC4/PersonaMVC4Example/Views/Account/ExternalLoginConfirmation.cshtml
  108. +8 −0 MVC4/PersonaMVC4Example/Views/Account/ExternalLoginFailure.cshtml
  109. +101 −0 MVC4/PersonaMVC4Example/Views/Account/Login.cshtml
  110. +32 −0 MVC4/PersonaMVC4Example/Views/Account/Manage.cshtml
  111. +37 −0 MVC4/PersonaMVC4Example/Views/Account/Register.cshtml
  112. +27 −0 MVC4/PersonaMVC4Example/Views/Account/_ChangePasswordPartial.cshtml
  113. +25 −0 MVC4/PersonaMVC4Example/Views/Account/_ExternalLoginsListPartial.cshtml
  114. +34 −0 MVC4/PersonaMVC4Example/Views/Account/_RemoveExternalLoginsPartial.cshtml
  115. +26 −0 MVC4/PersonaMVC4Example/Views/Account/_SetPasswordPartial.cshtml
  116. +34 −0 MVC4/PersonaMVC4Example/Views/Home/About.cshtml
  117. +50 −0 MVC4/PersonaMVC4Example/Views/Home/Contact.cshtml
  118. +45 −0 MVC4/PersonaMVC4Example/Views/Home/Index.cshtml
  119. +10 −0 MVC4/PersonaMVC4Example/Views/Shared/Error.cshtml
  120. +49 −0 MVC4/PersonaMVC4Example/Views/Shared/_Layout.cshtml
  121. +14 −0 MVC4/PersonaMVC4Example/Views/Shared/_LoginPartial.cshtml
  122. +59 −0 MVC4/PersonaMVC4Example/Views/Web.config
  123. +3 −0 MVC4/PersonaMVC4Example/Views/_ViewStart.cshtml
  124. +30 −0 MVC4/PersonaMVC4Example/Web.Debug.config
  125. +31 −0 MVC4/PersonaMVC4Example/Web.Release.config
  126. +73 −0 MVC4/PersonaMVC4Example/Web.config
  127. BIN MVC4/PersonaMVC4Example/favicon.ico
  128. +32 −0 MVC4/PersonaMVC4Example/packages.config
View
@@ -1,6 +1,7 @@
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
bin
obj
+Packages
# mstest test results
TestResults
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonaMVC4Example", "PersonaMVC4Example\PersonaMVC4Example.csproj", "{38A68603-BC0F-4955-A4BD-B9E14BC72A0F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {38A68603-BC0F-4955-A4BD-B9E14BC72A0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {38A68603-BC0F-4955-A4BD-B9E14BC72A0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {38A68603-BC0F-4955-A4BD-B9E14BC72A0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {38A68603-BC0F-4955-A4BD-B9E14BC72A0F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Microsoft.Web.WebPages.OAuth;
+using PersonaMVC4Example.Models;
+
+namespace PersonaMVC4Example
+{
+ public static class AuthConfig
+ {
+ public static void RegisterAuth()
+ {
+ // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
+ // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166
+
+ //OAuthWebSecurity.RegisterMicrosoftClient(
+ // clientId: "",
+ // clientSecret: "");
+
+ //OAuthWebSecurity.RegisterTwitterClient(
+ // consumerKey: "",
+ // consumerSecret: "");
+
+ //OAuthWebSecurity.RegisterFacebookClient(
+ // appId: "",
+ // appSecret: "");
+
+ //OAuthWebSecurity.RegisterGoogleClient();
+ }
+ }
+}
@@ -0,0 +1,45 @@
+using System.Web;
+using System.Web.Optimization;
+
+namespace PersonaMVC4Example
+{
+ public class BundleConfig
+ {
+ // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
+ public static void RegisterBundles(BundleCollection bundles)
+ {
+ bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
+ "~/Scripts/jquery-{version}.js"));
+
+ bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
+ "~/Scripts/jquery-ui-{version}.js"));
+
+ bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
+ "~/Scripts/jquery.unobtrusive*",
+ "~/Scripts/jquery.validate*"));
+
+ // Use the development version of Modernizr to develop with and learn from. Then, when you're
+ // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
+ bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
+ "~/Scripts/modernizr-*"));
+
+ bundles.Add(new StyleBundle("~/Content/css").Include(
+ "~/Content/site.css",
+ "~/Content/persona-buttons.css"));
+
+ bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
+ "~/Content/themes/base/jquery.ui.core.css",
+ "~/Content/themes/base/jquery.ui.resizable.css",
+ "~/Content/themes/base/jquery.ui.selectable.css",
+ "~/Content/themes/base/jquery.ui.accordion.css",
+ "~/Content/themes/base/jquery.ui.autocomplete.css",
+ "~/Content/themes/base/jquery.ui.button.css",
+ "~/Content/themes/base/jquery.ui.dialog.css",
+ "~/Content/themes/base/jquery.ui.slider.css",
+ "~/Content/themes/base/jquery.ui.tabs.css",
+ "~/Content/themes/base/jquery.ui.datepicker.css",
+ "~/Content/themes/base/jquery.ui.progressbar.css",
+ "~/Content/themes/base/jquery.ui.theme.css"));
+ }
+ }
+}
@@ -0,0 +1,13 @@
+using System.Web;
+using System.Web.Mvc;
+
+namespace PersonaMVC4Example
+{
+ public class FilterConfig
+ {
+ public static void RegisterGlobalFilters(GlobalFilterCollection filters)
+ {
+ filters.Add(new HandleErrorAttribute());
+ }
+ }
+}
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Http;
+using System.Web.Mvc;
+using System.Web.Routing;
+
+namespace PersonaMVC4Example
+{
+ public class RouteConfig
+ {
+ public static void RegisterRoutes(RouteCollection routes)
+ {
+ routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
+
+ routes.MapRoute(
+ name: "Default",
+ url: "{controller}/{action}/{id}",
+ defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
+ );
+
+ }
+ }
+}
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web.Http;
+
+namespace PersonaMVC4Example
+{
+ public static class WebApiConfig
+ {
+ public static void Register(HttpConfiguration config)
+ {
+ /* added for the the WebAPI for Persona.
+ Note the added {action} url parameter
+ that makes this RPC rather than REST */
+ config.Routes.MapHttpRoute(
+ name: "DefaultApiWithAction",
+ routeTemplate: "api/{controller}/{action}/{id}",
+ defaults: new { id = RouteParameter.Optional }
+ );
+
+ config.Routes.MapHttpRoute(
+ name: "DefaultApi",
+ routeTemplate: "api/{controller}/{id}",
+ defaults: new { id = RouteParameter.Optional }
+ );
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 7707c8d

Please sign in to comment.