I am trying to walk through setting up a service provider that receives incoming requests step by step.
I have put together what I believe is about as rudimentary a script as I can just to receive a request and output information from it. When I attempt to access the page though, I receive an error indicating “CS1501: No overload for method ‘ReceiveSSO’ takes 7 arguments”. Does anyone have an idea as to what I am doing incorrectly?
@using System.Web
@using ComponentSpace.SAML2
@{
bool isInResponseTo = false;
string partnerIdP = null;
string authnContext = null;
string userName = null;
IDictionary<string, string> attributes = null;
string targetUrl = null;
ComponentSpace.SAML2.SAMLServiceProvider.ReceiveSSO(Request, out isInResponseTo, out partnerIdP, out authnContext, out userName, out attributes, out targetUrl);
}
isInResponseTo=@isInResponseTo
partnerIdP=@partnerIdP
authnContext=@authnContext
userName=@userName
relayState=@targetUrl
The code looks correct and there is an overload that takes 7 arguments as per your code.
What version of the SAML2 DLL are you using?
I just upgraded to 3.4.0 and am receiving the same error.
I fully deleted the entire project and started from scratch and I am no longer receiving this particular error.
Thanks for the update. I’m glad you got it working.