working SAML

This commit is contained in:
Siwat Sirichai 2025-06-08 17:37:21 +07:00
parent 252dac3143
commit 1c909b7790
273 changed files with 260766 additions and 80 deletions

13
SAML/Login.aspx.vb Normal file
View file

@ -0,0 +1,13 @@
Imports System.Web
Namespace SAML
Partial Public Class Login
Inherits System.Web.UI.Page
Protected Sub btnLogin_Click(sender As Object, e As EventArgs)
Dim samlRequest As String = SamlHelper.CreateAuthRequest("https://cudreg.com", "https://localhost:7009/SAML/PostResponse.aspx")
Dim redirectUrl As String = "https://sso.satitm.chula.ac.th/adfs/ls?SAMLRequest=" & HttpUtility.UrlEncode(samlRequest)
Response.Redirect(redirectUrl)
End Sub
End Class
End Namespace