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. C#
  4. webBrowser1 Control and NT Authentication

webBrowser1 Control and NT Authentication

Scheduled Pinned Locked Moved C#
securitycomhelptutorialquestion
2 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.
  • B Offline
    B Offline
    Brad Wick
    wrote on last edited by
    #1

    I can't seem to find anything to help my desktop application load a website and pass through the current logged in user. I know I can get the current logged in user by string NTUsername = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); and I have seen posts where you can specify the Username in the URL but neither are working url = "http://username:" + NTUsername + "@subdomain.domain.com/default.aspx"; I have even tried to hard code in my username/domain. Can someone help give me some insight on how to pass the current logged in user to the web browser control?

    L 1 Reply Last reply
    0
    • B Brad Wick

      I can't seem to find anything to help my desktop application load a website and pass through the current logged in user. I know I can get the current logged in user by string NTUsername = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); and I have seen posts where you can specify the Username in the URL but neither are working url = "http://username:" + NTUsername + "@subdomain.domain.com/default.aspx"; I have even tried to hard code in my username/domain. Can someone help give me some insight on how to pass the current logged in user to the web browser control?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Brad Wick wrote:

      and I have seen posts where you can specify the Username in the URL

      Well the site has to support that yes? Does it? You have to do whatever the site requires.

      led mike

      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