Exemplo n.º 1
0
 public ActionResult <QuickConnectResult> Connect([FromQuery, Required] string secret)
 {
     try
     {
         return(_quickConnect.CheckRequestStatus(secret));
     }
     catch (ResourceNotFoundException)
     {
         return(NotFound("Unknown secret"));
     }
 }
Exemplo n.º 2
0
 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"));
     }
 }