 |
+  |
+
|
|  |
- | <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControlRecursively("OKButton")) %> | | | This application uses Single Sign-On (SSO) authentication through ADFS.
- Click the button below to authenticate with your organizational credentials.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | |
- |
+ | <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControlRecursively("OKButton")) %>
<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControlRecursively("OKButton")) %> |
diff --git a/Security/SignIn.aspx.vb b/Security/SignIn.aspx.vb
index 7737060..1d83728 100644
--- a/Security/SignIn.aspx.vb
+++ b/Security/SignIn.aspx.vb
@@ -12,7 +12,6 @@ Imports System.Collections
Imports System.Collections.Generic
Imports System.ComponentModel
-Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports BaseClasses
@@ -245,16 +244,11 @@ Partial Public Class SignIn
CancelButton_Click_Base(sender, args)
' NOTE: If the Base function redirects to another page, any code here will not be executed.
End Sub
- Public Sub OKButton_Click(ByVal sender As Object, ByVal args As EventArgs)
+
+ Public Sub OKButton_Click(ByVal sender As Object, ByVal args As EventArgs)
' Click handler for OKButton.
- ' Redirect to SAML authentication instead of traditional login
- Try
- Dim samlRequest As String = SamlHelper.CreateAuthRequest("https://cudreg.com", Request.Url.GetLeftPart(UriPartial.Authority) & "/Security/SamlCallback.aspx")
- Dim redirectUrl As String = "https://sso.satitm.chula.ac.th/adfs/ls?SAMLRequest=" & HttpUtility.UrlEncode(samlRequest)
- Response.Redirect(redirectUrl)
- Catch ex As Exception
- Me.ProcessLoginFailed("SAML Authentication Error: " & ex.Message, "")
- End Try
+ ' Customize by adding code before the call or replace the call to the Base function with your own code.
+ OKButton_Click_Base(sender, args)
' NOTE: If the Base function redirects to another page, any code here will not be executed.
End Sub
diff --git a/Security/SignIn.xml b/Security/SignIn.xml
index 4d4fb04..d16ce11 100644
--- a/Security/SignIn.xml
+++ b/Security/SignIn.xml
@@ -132,13 +132,16 @@
Button-CommandName
Login
-
+
+
Button-Text
- Login with ADFS
+ Btn:OK
+ ResourceReference
Button-ToolTip
- Login with ADFS Single Sign-On
+ Btn:OK
+ ResourceReference
|
|
|