Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Securing A Web API

Securing A Web API

Scheduled Pinned Locked Moved Web Development
asp-netcsharpcomjsonhelp
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I'm working on an ASP.Net Web API. I found [this article](https://code.tutsplus.com/tutorials/securing-aspnet-web-api--cms-26012). It seems pretty straightforward, but it's a few years old. Is this still the way to secure a Web API? If not, can someone point me in the right direction?

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    realJSOPR A 2 Replies Last reply
    0
    • K Kevin Marois

      I'm working on an ASP.Net Web API. I found [this article](https://code.tutsplus.com/tutorials/securing-aspnet-web-api--cms-26012). It seems pretty straightforward, but it's a few years old. Is this still the way to secure a Web API? If not, can someone point me in the right direction?

      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      You could set up a table in your database that contains authorization data (like an GUID that serves as an api key, and even further, api method name(s) that can be used by the key. You'd have to manually maintain the table unless you took the time to write a tool to assist you.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      K 1 Reply Last reply
      0
      • realJSOPR realJSOP

        You could set up a table in your database that contains authorization data (like an GUID that serves as an api key, and even further, api method name(s) that can be used by the key. You'd have to manually maintain the table unless you took the time to write a tool to assist you.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        Thanks!

        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

        1 Reply Last reply
        0
        • K Kevin Marois

          I'm working on an ASP.Net Web API. I found [this article](https://code.tutsplus.com/tutorials/securing-aspnet-web-api--cms-26012). It seems pretty straightforward, but it's a few years old. Is this still the way to secure a Web API? If not, can someone point me in the right direction?

          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

          A Offline
          A Offline
          aquatecinnovativee
          wrote on last edited by
          #4

          Web Development Services

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups