public FormsAuthenticationModule( IUserMapper userMapper, IConfiguration configuration, IUserRepository userRepository, IViewRenderer viewRenderer, IModuleStaticWrappers moduleStaticWrappers) { Get[AuthenticationRedirectUrl.Url] = p => View[AuthenticationRedirectUrl.Url]; Post[AuthenticationRedirectUrl.Url] = p => userMapper.Authenticate( this, userMapper, configuration, userRepository, this.Bind <UserCredentials>(), viewRenderer, moduleStaticWrappers); }
public ActiveDirectoryAuthenticateModule(IUserMapper userMapper, IConfiguration configuration, IModuleStaticWrappers moduleStaticWrappers) { Get[AuthenticationRedirectUrl.Url] = p => userMapper.Authenticate(this, userMapper, configuration, null, null, null, moduleStaticWrappers); }