Decouple SGU authentication from profile pages

This commit is contained in:
2026-09-01 14:43:57 -06:00
parent fd3eb537a1
commit 0391320a3e
8 changed files with 221 additions and 96 deletions
+7 -1
View File
@@ -13,6 +13,8 @@ param(
[string]$NtlmEndpoint = 'https://sgu.ulsa.edu.mx/',
[string[]]$AllowedNtlmRedirectHosts = @('sgu.ulsa.edu.mx'),
[ValidatePattern('^/')]
[string]$AuthenticationPath = '/psulsa/',
[ValidatePattern('^/')]
[string]$AdministrativeProfilePath = '/psulsa/gadmon/capitalhumano/controlincidencias/incidencias.aspx',
[ValidatePattern('^/')]
[string]$StudentProfilePath = '/psulsa/alumnos/consultainformacionalumnos/consultainformacion.aspx',
@@ -28,7 +30,9 @@ param(
[ValidateLength(1, 64)]
[string]$DefaultCompany = 'Universidad La Salle',
[ValidateRange(10, 60)]
[int]$NtlmTimeoutSeconds = 30,
[int]$NtlmTimeoutSeconds = 20,
[ValidateRange(2, 30)]
[int]$ProfileTimeoutSeconds = 10,
[switch]$CreateMissingOus,
[switch]$DisableCertificateRevocationCheckForLab
)
@@ -141,7 +145,9 @@ $productionSettings = @{
Endpoint = $NtlmEndpoint
Domain = ''
TimeoutSeconds = $NtlmTimeoutSeconds
ProfileTimeoutSeconds = $ProfileTimeoutSeconds
MaxRedirects = 5
AuthenticationPath = $AuthenticationPath
AdministrativeProfilePath = $AdministrativeProfilePath
StudentProfilePath = $StudentProfilePath
MenuProfilePath = $MenuProfilePath