string samlCertificate = @"-----BEGIN CERTIFICATE----- BLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAH123543== -----END CERTIFICATE-----"; // 2. Let's read the data - SAML providers usually POST it into the "SAMLResponse" var var samlResponse = new Response(samlCertificate, Request.Form["SAMLResponse"]); if (samlResponse.IsValid()) { string username, email, firstname, lastname; username = samlResponse.GetNameID(); email = samlResponse.GetEmail(); firstname = samlResponse.GetFirstName(); lastname = samlResponse.GetLastName(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)