private string ParameterizeSoapRequestTokenMsgWithAssertion(string url, string samlAssertion, string toUrl) { string samlRTString = new ResourceLoader().GetString("SAML11RequestTokenSOAPMsgAssertion"); samlRTString = samlRTString.Replace("[assertion]", samlAssertion); samlRTString = samlRTString.Replace("[url]", url); samlRTString = samlRTString.Replace("[toUrl]", toUrl); return samlRTString; }
private string ParameterizeSoapRequestTokenMsgWithUsernamePassword(string url, string username, string password, string toUrl) { string samlRTString = new ResourceLoader().GetString("SAML11RequestTokenSOAPMsg"); samlRTString = samlRTString.Replace("[username]", username); samlRTString = samlRTString.Replace("[password]", password); samlRTString = samlRTString.Replace("[url]", url); samlRTString = samlRTString.Replace("[toUrl]", toUrl); return samlRTString; }