Credentials security using ROQL
Content
Hi,
I made an AddIn using ROQL and it works OK but I need help to avoid hardcode credentials.
I looked for information on this but could not find anything related.
Thanks Regards.
Version
Service CloudCode Snippet
string url = _globalContext.GetInterfaceServiceUrl(ConnectServiceType.Soap); EndpointAddress endpoint = new EndpointAddress(url); BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportWithMessageCredential); binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName; binding.MaxReceivedMessageSize = 1024 * 1024; binding.MaxBufferSize = 1024 * 1024; binding.MessageEncoding = WSMessageEncoding.Mtom; _rightNowClient = new RightNowSyncPortClient(binding, endpoint); _rightNowClient.ClientCredentials.UserName.UserName = "USUARIO"; _rightNowClient.ClientCredentials.UserName.Password = "USUARIOPASS";
0