This is the full authentication code file :
## Authentication/SPAuthentication.wm
## Copyright (c) 2002 First Hop Ltd
##
## Edit authentication information
##
#include as macro "functions.wm"
#parse "CSRFTokenUtil.wm"
#set $title="Service Manager ::: Authentication"
#set $helplink="changing_passwords.html#sp_authentication"
#set $menuname="Authentication"
#set $provider = $database.getProfile($Session.Value.provider)
#if(!$Session.Value.provider || $Session.Value.provider == null) {
#set $principal = $Request.getUserPrincipal()
#if ($principal != null) {
#set $provider = $operator.getServiceProviderByUser($principal.getName())
$Session.putValue("provider", $provider.Key )
}
}
#if($Form.targetId){
#set $modifiedprovider = $Session.Value.modifiedprovider
} #else {
#set $modifiedprovider = $provider.modify()
$Session.putValue("modifiedprovider",$modifiedprovider)
}
#set $lengthCheckRequired=$modifiedprovider.isLengthCheckRequired()
#set $complexityCheckRequired=$modifiedprovider.isComplexityCheckRequired()
#set $name = $provider.getUsername()
#parse "SPHeader.wm"
<h1>#help_link("$SPAuthentication_Authentication_Help_link", "$SPAuthentication_Authentication_Help_ttip") $SPAuthentication_Authentication</h1>
<p>$SPAuthentication_Change_authentication</p>
<fieldset>
<legend>#help_link("$SPAuthentication_SP_info_Help_link", "$SPAuthentication_SP_info_Help_ttip") $SPAuthentication_SP_info</legend>
#if(!$isLogout) {
<form action="$Request.ServletPath/Authentication/SPAuthentication$csrfTokenWithQuestionMark">
method=post ACCEPT-CHARSET="UTF-8" ONSUBMIT="return passwordValidate(this,'$lengthCheckRequired','$complexityCheckRequired')">
<input type="hidden" name="targetId" value="S:modifiedprovider">
<input type="hidden" name="savePage" value="/Authentication/SPAuthentication">
<input type="hidden" name="saveObject" value="modifiedprovider">
<input type="hidden" name="CheckHistory" value="true">
<input type="hidden" name="isChangePasswordRequest" value="true">
<table>
<tr>
<td>$SPAuthentication_Username</td>
<td colspan="2">$name<input type="hidden" name="Username" value="$name"></input></td>
</tr>
<tr><td>$SPAuthentication_Old_Password</td>
<td colspan="2"><input type="password" name="OldPassword" size="22" maxlength="40" value="">
</input></td></tr>
<tr><td>$SPAuthentication_New_Password</td>
<td colspan="2"><input type="password" name="Password" size="22" maxlength="40" value="">
</input></td></tr>
<tr><td>$SPAuthentication_Confirm_Password</td>
<td colspan="2"><input type="password" name="ConfirmPassword" size="22" maxlength="40" value="">
</input></td></tr>
</table>
</input></input></input></input></input></form></fieldset>
<p align="RIGHT">
##reference("$SO_Button_Cancel", "$Request.ServletPath/Services/ListServices$csrfTokenWithQuestionMark", "$General_Cancel", "button")
<input name="save" type="submit" class="submitButton" value="$General_Cancel" />
<input name="save" type="submit" class="submitButton" value="$SO_Button_Change" />
</p>
} #else {
<table cellpadding="2" border="0" cellspacing="0" width="350">
<tr><td nowrap="">Username</td><td>$name</td></tr>
</table>
}
<script type="text/javascript">
if (localStorage.getItem("AG_SP_USER_TEMP") != null ) {
localStorage.setItem("AG_SP_USER",localStorage.getItem("AG_SP_USER_TEMP"));
localStorage.removeItem("AG_SP_USER_TEMP");
}
</script>
#parse "SPFooter.wm"
As soon as we login we are directly going to this authentication file ?