This commit is contained in:
@@ -46,7 +46,23 @@ namespace qbridge.Controllers
|
||||
return Content($"State: {state}, Code: {code}");
|
||||
}
|
||||
|
||||
[HttpGet("Start")]
|
||||
public IActionResult Get()
|
||||
{
|
||||
string url = string.Empty;
|
||||
var queryParams = new Dictionary<string, string>()
|
||||
{
|
||||
{"client_id", "ABj70Wv5gDauFd9KgKFwuvpQjfzTwEgodEG8tnBbS8mSQhNrZJ" },
|
||||
{"scope", "openid" },
|
||||
{"redirect_uri","https://localhost:5001/OAuthRedirect" },
|
||||
{"response_type","code"},
|
||||
{"state","MyUniqueStateID"}
|
||||
};
|
||||
|
||||
url = Microsoft.AspNetCore.WebUtilities.QueryHelpers.AddQueryString("https://appcenter.intuit.com/connect/oauth2", queryParams);
|
||||
// return Content($"AuthUrl: {url}");
|
||||
return Redirect(url);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user