Candidate.Nancy.Selfhosted.App.Bootstrapper.SetupFormsAuthentication C# (CSharp) Méthode

SetupFormsAuthentication() private méthode

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

            FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
        }