Guest User

Untitled

a guest
Feb 13th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment