This commit is contained in:
@@ -75,13 +75,19 @@ namespace qbridge.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet("start/{state}")]
|
[HttpGet("start/{state}/{sourceid}")]
|
||||||
public async Task<IActionResult> GetAsync([FromRoute]string state)
|
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))
|
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
|
//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 class QBToken
|
||||||
{
|
{
|
||||||
public string realmId { get; set; }
|
public string realmId { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user