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. The Lounge
  3. Now that's secure...

Now that's secure...

Scheduled Pinned Locked Moved The Lounge
csharpjavascriptsecuritydatabasewcf
4 Posts 2 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.
  • Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #1

    So I'm working on this SOAP service, which needs to have a sort of two-layered security (according to specs). The first is basic authentication, which is, of course, a well known protocol (which I had to implement myself because Azure App Services doesn't support this because it checks the (on-premise) AD by default). The second is on message level, each request has an authentication token in the form of [username][divider][password]. Seems overkill, but alright. Except that the username and password for the basic authentication are hard-coded! :wtf: It seems I can set the password in the third party application (although that's not possible/allowed according to the specs), but the username is definitely hard-coded in the application :laugh: If the username is hard-coded, but the password isn't, all I can do is check if the supplied password matches any passwords in the database* and then check if the token in the message belongs to that password*. It's all rather clunky :laugh: So basically it's just authentication on message level with extra steps :doh: * Hashed, of course!

    Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

    H 1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      So I'm working on this SOAP service, which needs to have a sort of two-layered security (according to specs). The first is basic authentication, which is, of course, a well known protocol (which I had to implement myself because Azure App Services doesn't support this because it checks the (on-premise) AD by default). The second is on message level, each request has an authentication token in the form of [username][divider][password]. Seems overkill, but alright. Except that the username and password for the basic authentication are hard-coded! :wtf: It seems I can set the password in the third party application (although that's not possible/allowed according to the specs), but the username is definitely hard-coded in the application :laugh: If the username is hard-coded, but the password isn't, all I can do is check if the supplied password matches any passwords in the database* and then check if the token in the message belongs to that password*. It's all rather clunky :laugh: So basically it's just authentication on message level with extra steps :doh: * Hashed, of course!

      Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

      H Offline
      H Offline
      honey the codewitch
      wrote on last edited by
      #2

      and you're sending passwords out over basic auth with every message. i mean, i'm sure its over SSL but still. That seems less secure than simply sending an auth token.

      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

      Sander RosselS 1 Reply Last reply
      0
      • H honey the codewitch

        and you're sending passwords out over basic auth with every message. i mean, i'm sure its over SSL but still. That seems less secure than simply sending an auth token.

        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #3

        The auth token (which is basically just another set of a username and password, which they call token) is sent over the same line as the basic auth :D SSL goes without saying, it's part of the basic auth spec I believe (but even if it wasn't).

        Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        H 1 Reply Last reply
        0
        • Sander RosselS Sander Rossel

          The auth token (which is basically just another set of a username and password, which they call token) is sent over the same line as the basic auth :D SSL goes without saying, it's part of the basic auth spec I believe (but even if it wasn't).

          Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #4

          This makes me glad i don't have to do this kind of thing for a living anymore. Don't take this personally, but I really want to hack your jobsite now.

          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

          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