KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Setting a realm for a specific SOAP method
PRODUCT: 4D | VERSION: 2003 | PLATFORM: Mac & Win
Published On: May 16, 2003

From within the On Web Authentication method, you can create a procedure that check for a request that requires authentication. This procedure will provide a security to the SOAP Server by preventing unauthorized users from accessing a specific method.

Here is an example of the procedure in the On Web Authentication method that will check to see if the requested SOAP method has its name starting with “Admin”. If so, then it will check to see if the passed username and password belong to the administrator.

C_TEXT($1;$2;$3;$4;$5;$6)

If (Get SOAP info(SOAP Method Name)=”Admin@”)
 $0:=IsAdminUser($5;$6)
Else
 $0:=True
End if