daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <location path="Webhook">
  2.   <system.web>
  3.     <authorization>
  4.       <allow users="*"/>
  5.     </authorization>
  6.   </system.web>
  7. </location>
  8.    
  9. <authorization>
  10.   <deny users="?" />
  11. </authorization>
  12.    
  13. [Authorize]
  14. public class BaseController : System.Web.Mvc.Controller
  15. {
  16.  
  17. }
  18.  
  19.  
  20. [Authorize]
  21. public class BaseApiController : System.Web.Http.ApiController
  22. {
  23.  
  24. }
  25.    
  26. [RoutePrefix("Api/Anonymous")]
  27. [Authorize]
  28. public class AnonymousController : ApiController
  29. {
  30.     [HttpGet]
  31.     [Route("GetServiceStatus")]
  32.     [AllowAnonymous]
  33.     public string GetServiceStatus()
  34.     {
  35.         return "OK";
  36.     }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top