public ActionResult <QuickConnectResult> Connect([FromQuery, Required] string secret) { try { return(_quickConnect.CheckRequestStatus(secret)); } catch (ResourceNotFoundException) { return(NotFound("Unknown secret")); } }
public ActionResult <QuickConnectResult> Connect([FromQuery, Required] string secret) { try { return(_quickConnect.CheckRequestStatus(secret)); } catch (ResourceNotFoundException) { return(NotFound("Unknown secret")); } catch (AuthenticationException) { return(Unauthorized("Quick connect is disabled")); } }