Candidate.Nancy.Selfhosted.App.Bootstrapper.SetupFormsAuthentication C# (CSharp) 메소드

SetupFormsAuthentication() 개인적인 메소드

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

            FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
        }