public static void RegisterRoutes()
 {
     // Do we have any custom routes defined?
     if (AuthenticationProviderFactory.Configuration.Value == null)
     {
         SimpleAuthenticationRouteConfig.RegisterDefaultRoutes(RouteTable.Routes);
     }
     else
     {
         SimpleAuthenticationRouteConfig.RegisterDefaultRoutes(RouteTable.Routes,
                                                               AuthenticationProviderFactory.Configuration.Value
                                                               .RedirectRoute,
                                                               AuthenticationProviderFactory.Configuration.Value
                                                               .CallBackRoute);
     }
 }
Esempio n. 2
0
 public static void RegisterRoutes()
 {
     SimpleAuthenticationRouteConfig.RegisterRoutes(RouteTable.Routes);
 }