Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6922181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:22:24+00:00 2026-05-27T10:22:24+00:00

Is there a way to have simple windows authentication for a public facing site

  • 0

Is there a way to have simple windows authentication for a public facing site (anonymous viewing is enabled so as to view the login page) but insatead of it popping up the windows auth dialog, to use a login page (aspx). I saw something similar when i switched to mixed mode authentication. SharePoint has a dropdown with “windows authentication” or “forms authentication”. What i need is something similar, but just the “windows authentication” option.

I’ve seen similar questions on SO, but they all involve creating a custom login page. The ideal solution would involve no new pages and no coding.

Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:22:24+00:00Added an answer on May 27, 2026 at 10:22 am

    This could be done by launching the sharepoint page’s address in internet explorer, and using some pinvoke api to send keys or settext to the login box.

    I fanagled this setup for a vb.net forms application. It works on my XP. I haven’t tried it in Windows 7 yet, but I’m sure it needs some adjustment for it to work there.

    This uses a library called WindowScraper, from here: http://www.programmersheaven.com/download/56171/download.aspx

    This library has a bunch of winapi and pinvoke built in. If your assembly won’t allow it (because you are using VS 2010, perhaps), saying it doesn’t have a strong name, then use SharpDevelop and rebuild the solution after adding your own certificate.

    Then put the dll in your application directory and add a reference.

    Then add the imports:

    Imports WindowScrape
    Imports WindowScrape.Constants
    Imports WindowScrape.Types
    

    Finally, the code (put all this in a module or class):

    Private Property PortalAddress As String = “http://myportal@somewhere.com”
    Private Property logintitle As String = “Connect to myportal@somewhere.com“

    Public Sub openPortal()

    If My.Computer.Info.OSFullName = "Microsoft Windows XP Professional" then 
        LoginToPortalXP()
    Else
        msgbox("Someday, we will be able to log you in automatically" & vbCr & "But it isn't ready yet.")
    End If
    End Sub
    
    Private Function IsWindowReady(Optional ByVal timeout As integer = 10000)
        Dim isready As Boolean = false
        Dim timer As Integer = 1000
        Do Until Not loginBox is nothing or timer = timeout
            Thread.Sleep(1000)
            loginbox = HwndObject.GetWindowByTitle(logintitle)
            timer = timer + 1000
        loop
        If Not loginbox is nothing then isready = true
        Return isready
    End Function
    
    Sub LoginToPortalXP()
        Try
            Dim TheBrowser As Object = CreateObject("InternetExplorer.Application")
            TheBrowser.Visible = True
            TheBrowser.Navigate(PortalAddress)
            If Not IsWindowReady then debug.print("failed") : Exit sub
    
            Dim sys As HwndObject = loginbox.GetChildren(1)   'SysCredential
            sys.GetChildren(1).Text = "myUserName"  'username box
            Thread.Sleep(500)
            sys.GetChildren(4).Text = "myPassword"   'password box
            Thread.Sleep(500)
            loginbox.GetChildren(2).Click()     'push the okay button
        Catch ex As Exception
            msgbox("ERROR AutoLogging into Portal: " & vbcr & & ex.Message)
        Finally        
        End Try
    End Sub
    

    I added the timer just in case it takes longer. You can change the timeout, of course.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple question: is there a way in Windows Mobile to schedule
I have a simple question. Is there a way ( using reflections I suppose
Is there a simple way to have isometric projection? I mean the true isometric
Is there any simple way to programatically colorize images in .NET? Basically we have
I have a String Object in format yyyyMMdd .Is there a simple way to
I have simple web application called App that is secured with Windows Authentication. I
Is there a simples way to do this? I have 2 TextBox, for email
When you have a derived class, is there an simpler way to refer to
Is there any way to have something that looks just like a file on
Is there a way to have TortoiseSVN (or any other tool) auto-add any new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.