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. General Programming
  3. WCF and WF
  4. Securing (wcf) rest service.

Securing (wcf) rest service.

Scheduled Pinned Locked Moved WCF and WF
csharpdatabasewcfjsontutorial
1 Posts 1 Posters 0 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.
  • T Offline
    T Offline
    teejayem
    wrote on last edited by
    #1

    I have been reading on how to secure a RESTful service and the more and more i read, the more and more i get confused. Basically i am required to pass 2 types of credentials: - Database credentials: login, password, host. - Store level employee credentials: 6 digit number, password. I'm thinking what i can do is have a method like:

    string SignIn(string employeeNumber, string employeePassword, string login, string password, string hostName);

    What i would do then is if this info validates, i can just store this info somewhere and create/return a session key. Then with subsequent calls the session key can be passed in the header. Now, let's say i have a method like:

    void GetData(string id);

    Is it in that method that i check to see if the session id is valid? A coworker said that if the a user (or attacker) can get inside that method then he's technically already in. So it has me thinking that i should be validating the call before the wcf runtime invokes the method. But i've seen some examples that disproves this. What are the best practices that i need to follow to secure a REST web service?

    Don't be overcome by evil, but overcome evil with good

    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