Overview: To interface Avante and the website the website will have accept parameters passed to it.
Processing:
If PORT.NBR and PORT.MARKER are passed in as query parameters that needs to be recorded in the Authcookie
Modify QueryStringModule context_beginRequest to put in exceptions to these parameters:
- PortNbr
- PortMarker
Change ContactService and ContactRepository ValidateUser method to accept and pass to DB these parameters:
- portNbr – PORT.NUMBER
- portMarker – PORT.MARKER
Add properties to the AuthenticatedUserModel:
PortNbr
PortMarker
In LaddawnMembershipProvider change ValidateUser:
- Add 2 optional string parameters (PortNumber, PortMarker) pass them along to ContactService.ValidateUser
- Set authorizedUser Properties:
- PortNumber
- PortMarker
In AccountController.Login()
- If Request.QueryString(“PortNbr”) <> “” Then
- Call LaddawnMembershipService.ValidateUser with
- UserName= Found contact’s Email
- Password = Found Contact’s Webpassword
- PortNumber=QueryString(PortNbr)
- PortMarker=QueryString(PortMarker)
- Call LaddawnMembershipService.ValidateUser with
- If ValidateUser returns True then
- FormsAuthentication.SignIn(Found Contact’s Email, False)
- Return RedirectToAction("Index", "Home")
- Else log error
Database Side:
- Processing:
-
- Change RPC$CONTACT_VALIDATE to check for PORT.NUMBER, and PORT.MARKER. Call FIND.AVANTE.WEBINFO(WEBINFO.REC) If the record is not found (WEBINFO.REC=””) return error.
- Change CONTACT.READ to check if PORT.NUMBER <> “”. If PORT.NUMBER <> “” THEN CUSTOMER.NBR = WEBINFO.REC<2>, MASTERUSER.FLAG = 0