This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ActionResult Filter(string productCategory, IDictionary<string, string> filters) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace OAuthDemo.Controllers | |
| { | |
| using System; | |
| using System.Web.Mvc; | |
| [Authorize] | |
| public class AccountController : Controller | |
| { | |
| public ActionResult Logout() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @foreach (var provider in OAuthWebSecurity.RegisteredClientData) | |
| { | |
| <a href="@this.Url.Action("loginexternal", "account", new { provider = provider.AuthenticationClient.ProviderName, returnUrl = this.Model.RedirectUrl })"> | |
| <@provider.DisplayName | |
| </a> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace OAuthDemo.App_Start | |
| { | |
| using System.Configuration; | |
| using Microsoft.Web.WebPages.OAuth; | |
| using WebMatrix.WebData; | |
| public static class SecurityConfig | |
| { | |
| public static void Setup() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Personal.Website.Handlers | |
| { | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Routing; | |
| using Personal.ServiceLayer; | |
| public class MetaWeblogHandler : IRouteHandler | |
| { | |
| public IHttpHandler GetHttpHandler(RequestContext requestContext) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void RegisterRoutes(RouteCollection routes) | |
| { | |
| routes.Add(new Route("metaweblog", new MetaWeblogHandler())); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <configuration> | |
| <system.webServer> | |
| <handlers> | |
| <add name="MetaWebLogHandler" verb="POST,GET" type="MetaWeblogService" path="/metaweblog" /> | |
| </handlers> | |
| </system.webServer> | |
| </configuration> |