public async Task <IActionResult> CreateShopifyOAuth([FromBody] ShopifyOAuthResponse response, [FromServices] ShopifyOAuth oauth) { if (!oauth.VerifyOAuthRequest(response)) { return(NotFound()); } var username = String.Empty; if (HttpContext.User.Identity.IsAuthenticated) { username = HttpContext.User.Identity.Name; } var account = await dbAccounts.GetOneByUsername(username); if (!await shopify.AddShopifyIntegration(account, response, oauth)) { return(NotFound()); } return(Ok()); }