Example #1
0
        public async Task <ActionResult> AuthenticateDevBypass()
        {
            if (runtimeConfigurationState.IsDevelopment)
            {
                await HttpContext.SignInAsync(authenticationLogic.Authenticate("*****@*****.**"));

                return(Redirect(Url.Content("~/")));
            }
            else
            {
                return(http.RespondBadRequest("Resource does not exist"));
            }
        }