From b5735d3eb9b776d4174dea0082b1fbabec63be00 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 7 Oct 2019 19:38:50 +0000 Subject: [PATCH] --- Controllers/AuthController.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Controllers/AuthController.cs b/Controllers/AuthController.cs index a15b56d..91547f8 100644 --- a/Controllers/AuthController.cs +++ b/Controllers/AuthController.cs @@ -75,13 +75,19 @@ namespace qbridge.Controllers } - [HttpGet("start/{state}")] - public async Task GetAsync([FromRoute]string state) + [HttpGet("start/{state}/{sourceid}")] + public async Task 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 @@ -246,7 +252,8 @@ namespace qbridge.Controllers return Ok(token.Value); } - } + } + public class QBToken