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. WCF impersonation

WCF impersonation

Scheduled Pinned Locked Moved WCF and WF
wcfcsharpvisual-studiosecurityhelp
5 Posts 2 Posters 1 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.
  • G Offline
    G Offline
    Gktony
    wrote on last edited by
    #1

    Hi All, I am trying to impersonate a .svc in VS 2008 which I invoke via another web application In the web.config of the .svc I have added the following <system.web> <identity impersonate="true" userName=username" password="password"/> lt;authentication mode="Windows" /> </system.web>& The above works fine under .aspx web services,however doesn't work under .svc and always returns me an anonymous user. Can you please help Thanks

    N 1 Reply Last reply
    0
    • G Gktony

      Hi All, I am trying to impersonate a .svc in VS 2008 which I invoke via another web application In the web.config of the .svc I have added the following <system.web> <identity impersonate="true" userName=username" password="password"/> lt;authentication mode="Windows" /> </system.web>& The above works fine under .aspx web services,however doesn't work under .svc and always returns me an anonymous user. Can you please help Thanks

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      WCF does not use this setting. You need to configure the binding for the WCF service as necessary http://blogs.msdn.com/wenlong/archive/2006/05/18/wcf-impersonation-for-hosted-services.aspx[^]


      I know the language. I've read a book. - _Madmatt

      G 1 Reply Last reply
      0
      • N Not Active

        WCF does not use this setting. You need to configure the binding for the WCF service as necessary http://blogs.msdn.com/wenlong/archive/2006/05/18/wcf-impersonation-for-hosted-services.aspx[^]


        I know the language. I've read a book. - _Madmatt

        G Offline
        G Offline
        Gktony
        wrote on last edited by
        #3

        Tanks for that however I need to pass specific user name and password through and not the windows current user. Is there anyway of specifying that in .svc?

        G 1 Reply Last reply
        0
        • G Gktony

          Tanks for that however I need to pass specific user name and password through and not the windows current user. Is there anyway of specifying that in .svc?

          G Offline
          G Offline
          Gktony
          wrote on last edited by
          #4

          What I need is the equivalent of the line below in WCF <identity impersonate="true" userName="username" password="password"/> Thanks

          N 1 Reply Last reply
          0
          • G Gktony

            What I need is the equivalent of the line below in WCF <identity impersonate="true" userName="username" password="password"/> Thanks

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Something like this, How to: Impersonate a Client on a Service[^]


            I know the language. I've read a book. - _Madmatt

            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