ComponentPro Blog

Creating and sending an AuthnRequest

Monday, May 25, 2015

Today we will introduce an example on how to create an AuthnRequest and send it to your IdentityProvider using our Ultimate SAML component:

AuthnRequest request = new AuthnRequest();
request.IsPassive = false;
request.ProtocolBinding = SamlBindingUri.HttpPost;
request.AssertionConsumerServiceURL = "your url";

request.Issuer = new Issuer();
request.Issuer.NameIdentifier = "your name identifier";

request.NameIdPolicy = new NameIdPolicy();
request.NameIdPolicy.SpNameQualifier = "moodle.sp.myname";
request.NameIdPolicy.AllowCreate = true;
request.NameIdPolicy.Format = SamlNameIdentifierFormat.Persistent;

request.RequestedAuthnContext = new RequestedAuthnContext();
request.RequestedAuthnContext.Comparison = SamlAuthenticationContextComparison.Exact;
request.RequestedAuthnContext.AuthenticationContexts.Add(new AuthnContextClassRef(SamlAuthenticationContext.PasswordProtectedTransport));

request.SendHttpPost(Response, "http://mybaseurl", "my_relay_state"); 

Tags //  .net  saml  ultimate saml component  

ComponentPro releases Ultimate Studio v6.2 Build 50518

Monday, May 18, 2015

Dear Valued Customer,

ComponentPro today added a variety of updates to its .NET libraries and controls. All components have been updated to v6.2 with 157 improvements, bug fixes, and performance enhancements. FileSystem component gets a performance boots and memory footprint improvement when handling large amounts of files, SFTP and FTP now support multi-part download for a single file. A major bug in multi-thread file transfer engine was also fixed, making the FTP and SFTP component transfer files more stable when using multiple threads.

In this release we also introduced a new library named FileSync which is used to synchronize files and folders. Unlike the Mirror method of the FileSystem class, the Synchronizer class of this library supports both 1-way and 2-way synchronizations. This new library is included in Ultimate FTP, Ultimate SFTP and Ultimate ZIP components.

For more details please see the following release notes:

Ultimate products are safe from the OpenSSL Heartbleed issue

Monday, April 14, 2014

ComponentPro is aware of the Heartbleed vulnerability that is potentially affecting many websites and systems globally.

We have thoroughly investigated this matter as it relates to our systems and have determined that our website is not affected by the Heartbleed exploit.

Your account information is uncompromised, there is no further action needed by you. We will continue to put the safety and security of our customers as our highest priority.

The ComponentPro Ultimate products are also not affected by the critical OpenSSL issue since we dont use OpenSSL library. Instead we have our own security library written in C#.

Your application code using our library is safe from that OpenSSL's security bug.

For more information about the Heartbleed vulnerability, please visit

Tags //  heartbleed  openssl  security issue  

IMAP, POP3 and SMTP settings for Yahoo! Mail

Thursday, November 21, 2013

You can connect to Yahoo! IMAP, POP3 and SMTP servers without SSL enabled. The following table shows the available settings to establish connections to Yahoo! Mail servers:

Protocol Port Security Mode Server
IMAP 143 993 143 Unsecure Implicit Explicit
POP3 110 995 110 Unsecure Implicit Explicit
SMTP 587 465 Unsecure Implicit

Tags //  imap  pop3  smtp  yahoo  

Adding custom XML header to your SAML response

Wednesday, November 20, 2013

Some vendors require having XML header like <?xml version="1.0" encoding="utf-8"?> added to the SAML response before sending. You can accomplish that by using the method

SendPostBindingForm(Stream output, string messageFormVariableName,

string targetUrl, string relayState, string xmlHeader)
. The following example shows you how to use that method:

SendPostBindingForm(Response.OutputStream, "SAMLResponse", "http://comsumer-service-url/consumer.aspx",

"my relay state", "?xml version=\"1.0\" encoding=\"utf-8\"?>")

Tags //  saml  xml header