I have a third party company that we need to allow they users to pass into our website without loging in. TO keep it easy I was thinking of having them post to a custom login page on my site.
So their code would be something like this:
<form method="post" action="https://www.mywebsite.com/TestLandingPage.aspx">
username: <input id="username" name="username" type="text" />
Password: <input id="password" name="password" type="text" />
<input id="sbmtLogin" type="submit" value="Login" />
My landing/login page would do soemthign liek this.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
If Not Page.Request.Form("username") Is Nothing AndAlso Not Page.Request.Form("password") Is Nothing Then
Dim sUsername As String = Page.Request.Form("username").ToString()
Dim sPassword As String = Page.Request.Form("password").ToString()
'test user credentials
' login error
View Complete Post