This commit is contained in:
2019-10-07 19:38:50 +00:00
parent a6a02989e2
commit b5735d3eb9

View File

@@ -75,13 +75,19 @@ namespace qbridge.Controllers
}
[HttpGet("start/{state}")]
public async Task<IActionResult> GetAsync([FromRoute]string state)
[HttpGet("start/{state}/{sourceid}")]
public async Task<IActionResult> GetAsync([FromRoute]string state, [FromRoute] string sourceid)
{
//sourceid is actually the license id or trial so I can tell who is using and ultimately filter them out if they are not licensed and up to date (down the road, not initially)
if (string.IsNullOrWhiteSpace(state))
{
return BadRequest("state value is required");
return BadRequest("state value is missing and required");
}
if (string.IsNullOrWhiteSpace(sourceid))
{
return BadRequest("sourceid value is missing and required");
}
//Job one is to clean out the old entries in the token store if necessary
@@ -249,6 +255,7 @@ namespace qbridge.Controllers
}
public class QBToken
{
public string realmId { get; set; }