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. Windows Forms
  4. authenticate windows form using a cookie ?

authenticate windows form using a cookie ?

Scheduled Pinned Locked Moved Windows Forms
csharpquestion
8 Posts 4 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.
  • H Offline
    H Offline
    Harkamal Singh
    wrote on last edited by
    #1

    Hello. Is it possible to authenticate windows form using a cookie ? An application provides cookie, that i wish to use in my forms project to authenticate and use the credentials, basically looking impersonate using cookie. Really appreciate if someone can shed some light. Harry

    Before c# there was darkness

    H L 2 Replies Last reply
    0
    • H Harkamal Singh

      Hello. Is it possible to authenticate windows form using a cookie ? An application provides cookie, that i wish to use in my forms project to authenticate and use the credentials, basically looking impersonate using cookie. Really appreciate if someone can shed some light. Harry

      Before c# there was darkness

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      This sounds highly suspicious. I'm not sure that I would appreciate somebody stealing my work, which is what your post sounds like you are doing. Of course you might not be doing so. Without further explanation it is impossible to tell.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      H 1 Reply Last reply
      0
      • H Henry Minute

        This sounds highly suspicious. I'm not sure that I would appreciate somebody stealing my work, which is what your post sounds like you are doing. Of course you might not be doing so. Without further explanation it is impossible to tell.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        H Offline
        H Offline
        Harkamal Singh
        wrote on last edited by
        #3

        Which work of yours are you talking about. Have you published any such solution ?

        Before c# there was darkness

        H 1 Reply Last reply
        0
        • H Harkamal Singh

          Which work of yours are you talking about. Have you published any such solution ?

          Before c# there was darkness

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          No. You misunderstand. Your OP was worded, to me at least, as though you were attempting to use the work of someone else (the cookie) for your own purposes. This sounds, again to me, a bit suspicious. The sort of thing a virus program might try to do, for example. I am probably totally wrong about that, but I was trying to suggest to you that a more detailed explanation of what you are trying to do, might get more responses.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          H 1 Reply Last reply
          0
          • H Henry Minute

            No. You misunderstand. Your OP was worded, to me at least, as though you were attempting to use the work of someone else (the cookie) for your own purposes. This sounds, again to me, a bit suspicious. The sort of thing a virus program might try to do, for example. I am probably totally wrong about that, but I was trying to suggest to you that a more detailed explanation of what you are trying to do, might get more responses.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            H Offline
            H Offline
            Harkamal Singh
            wrote on last edited by
            #5

            Duh! Our intranet webserver intentionally provides a cookie for internal purposes and i wish to use this as windows authentication token, Wondering if this is possible.

            Before c# there was darkness

            H M 2 Replies Last reply
            0
            • H Harkamal Singh

              Duh! Our intranet webserver intentionally provides a cookie for internal purposes and i wish to use this as windows authentication token, Wondering if this is possible.

              Before c# there was darkness

              H Offline
              H Offline
              Henry Minute
              wrote on last edited by
              #6

              Ah. I now understand. I regret that I am unable to help you, but I hope that someone else will. :)

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              1 Reply Last reply
              0
              • H Harkamal Singh

                Duh! Our intranet webserver intentionally provides a cookie for internal purposes and i wish to use this as windows authentication token, Wondering if this is possible.

                Before c# there was darkness

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #7

                Hmm seems like an IO issue - finding the cookie folder may be a challenge. I'm pretty sure you should be able to read and parse the cookie in a winforms app. Is there a namespace aspx uses for it's helper functions, you may need to reference that.

                Never underestimate the power of human stupidity RAH

                1 Reply Last reply
                0
                • H Harkamal Singh

                  Hello. Is it possible to authenticate windows form using a cookie ? An application provides cookie, that i wish to use in my forms project to authenticate and use the credentials, basically looking impersonate using cookie. Really appreciate if someone can shed some light. Harry

                  Before c# there was darkness

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Hello two :) It's generally a good idea to keep out of the cookie-jar, as it will set of various alarms. It would also be hard to point to the right cookie-jar that you'd need, since not all browsers keep 'em in the same location. You stated that the webapplication runs on an intranet, so I assume you're using Windows Authentication? In that case, consider that each user probably needs to "log on" before they can access their workstations and run applications. Unless the webapplication isn't linked to the Active Directory, and you're keeping a list of users/roles in your database. In that case you can check out the Client Application Services[^]. There's also an article on CodeProject, if memory serves correctly :)

                  I are troll :)

                  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