feat: add username and loginHint to redirect URL in HandleSamlRedirect of SAML IdP (#4162)

This commit is contained in:
Dev Hjz
2025-09-07 14:18:35 +08:00
committed by GitHub
parent bc94735a8d
commit bf67be2af6
2 changed files with 13 additions and 3 deletions

View File

@@ -59,8 +59,10 @@ func (c *ApiController) HandleSamlRedirect() {
relayState := c.Input().Get("RelayState")
samlRequest := c.Input().Get("SAMLRequest")
username := c.Input().Get("username")
loginHint := c.Input().Get("login_hint")
targetURL := object.GetSamlRedirectAddress(owner, application, relayState, samlRequest, host)
targetURL := object.GetSamlRedirectAddress(owner, application, relayState, samlRequest, host, username, loginHint)
c.Redirect(targetURL, http.StatusSeeOther)
}