Candidate.Nancy.Selfhosted.App.Bootstrapper.SetupFormsAuthentication C# (CSharp) Method

SetupFormsAuthentication() private method

private SetupFormsAuthentication ( IKernel container, IPipelines pipelines ) : void
container IKernel
pipelines IPipelines
return void
        private void SetupFormsAuthentication(IKernel container, IPipelines pipelines)
        {
            var formsAuthConfiguration =
                new FormsAuthenticationConfiguration
                    {
                        RedirectUrl = "~/account/login",
                        UserMapper = container.Get<IUserMapper>()
                    };

            FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
        }