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. Web Development
  3. ASP.NET
  4. Security impersonation

Security impersonation

Scheduled Pinned Locked Moved ASP.NET
securityquestion
2 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.
  • L Offline
    L Offline
    Le centriste
    wrote on last edited by
    #1

    Hi I have to implement security with a web service. Since this is an intranet application, I decided to use Windows authentication with impersonation of the caller, with the following information in web.config file:

    <authentication mode="Windows"/>
    <identity impersonate="true"/>
    <authorization>
    <allow users="*" />
    <deny users="?" />
    </authorization>

    This works fine if I use the Internet Explorer to access the web service (http://localhost/webservice/service1.asmx, and I enter the parameters). But when I use a Windows Form application, I get an Access Denied (HTTP 401). Any idea? -------- "I say no to drugs, but they don't listen." - Marilyn Manson

    M 1 Reply Last reply
    0
    • L Le centriste

      Hi I have to implement security with a web service. Since this is an intranet application, I decided to use Windows authentication with impersonation of the caller, with the following information in web.config file:

      <authentication mode="Windows"/>
      <identity impersonate="true"/>
      <authorization>
      <allow users="*" />
      <deny users="?" />
      </authorization>

      This works fine if I use the Internet Explorer to access the web service (http://localhost/webservice/service1.asmx, and I enter the parameters). But when I use a Windows Form application, I get an Access Denied (HTTP 401). Any idea? -------- "I say no to drugs, but they don't listen." - Marilyn Manson

      M Offline
      M Offline
      Mariusz Wojcik
      wrote on last edited by
      #2

      I don't know the exact answer to your question, but maybe you can find some useful information in the Microsoft Patterns & Practices. Here are some links to books about designig WebServices: Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication Authentication in ASP.NET: .NET Security Guidance.
      Hope, you find something useful. -- Mariusz 'mAv' Wójcik master e-software engineer (BPC)

      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