public void Install(IWindsorContainer container, IConfigurationStore store) { container.Register(Classes.FromAssemblyInDirectory(new AssemblyFilter("bin")) .BasedOn <IWebApiTemplateAuthentication>() .WithService.FromInterface() .LifestyleTransient()); WebApiTemplateOAuthProvider.SetAuthenticationProvider(container.Resolve <IWebApiTemplateAuthentication>()); }
public WebApiTemplateOAuthOptions() { TokenEndpointPath = new PathString("/token"); AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(60); AccessTokenFormat = new WebApiTemplateJwtFormat(new OAuthAuthorizationServerOptions()); Provider = new WebApiTemplateOAuthProvider(); #if DEBUG AllowInsecureHttp = true; #endif }