Storing Administrator Credentials in the WCF Router

Administrator credentials could be stored on the WCF Router side in an encrypted file and used when the client application does not provide the credentials. When a client application provides administrator credentials, the stored credentials are ignored.

To create an encrypted credentials file, invoke the WCF Router using the -setcred command. For example:

IWayRoutingService.exe -setcred <user
name> <domain> <password>

If the command is executed successfully, then following message is displayed:

iwayroutingservice.dat was successfully generated.

For example:

The WCF Router can now be run in console mode and use saved credentials.

Note: In order to allow usage of saved credentials by the WCF Router in service mode, the iwayroutingservice.dat file must be moved into the windows\system32 directory. If the WCF Router is unable to find the iwayroutingservice.dat file in service mode, an appropriate message will be prompted into the log if the WCF Router logging is enabled and configured.