This commit is contained in:
2019-09-24 23:36:31 +00:00
parent 83a5c058bf
commit c8e8d0e7ba

View File

@@ -68,6 +68,12 @@ namespace qbridge.Controllers
url = Microsoft.AspNetCore.WebUtilities.QueryHelpers.AddQueryString("https://appcenter.intuit.com/connect/oauth2", queryParams);
// return Content($"AuthUrl: {url}");
return Redirect(url);
//will ask for login creds and permission then will redirect back to the Get method above with:
//State: MyUniqueStateID, Code: AB11569366500tshFDRPEuR28l4vTjpXWuwFldE44rMng98Gn9
//which in turn is *then* used to actually get the access token
//which is step 5 here: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/openid-connect#step-5-exchange-authorization-code-to-obtain-id-token-and-access-token
}