authenticate windows form using a cookie ?
-
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
-
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
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.”
-
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.”
Which work of yours are you talking about. Have you published any such solution ?
Before c# there was darkness
-
Which work of yours are you talking about. Have you published any such solution ?
Before c# there was darkness
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.”
-
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.”
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
-
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
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.”
-
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
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
-
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
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 :)