KeyInfo is defined in an assembly that is not referenced

Hi,

I am trying to implement IDP initiated SSO. I am using the low level API as I have to pass a value to “NameID” in Subject as the username. Can this be achieved with HIGH level Api using the Attributes Map ?
if not then in low level I am getting this error message while using your code :
The type ‘KeyInfo’ is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Security, Version=2.0.0.0, culture=neutral, PublicKeyToken=b30f5f7f11d50a3a

also attached is the screenshot of the error message.

Please advise.

thanks
Manu

Hi Manu
The SAML high-level APIs SAMLIdentityProvider.InitiateSSO and SAMLIdentityProvider.SendSSO include a userName parameter.
This is set as the SAML subject NameID in the SAML assertion.
Unless you have a different requirement, you probably don’t need to revert to the low-level API.
To fix the build error you’re seeing, simply add a reference to the System.Security assembly in your project as stated.

[quote]
ComponentSpace - 10/29/2018
Hi Manu
The SAML high-level APIs SAMLIdentityProvider.InitiateSSO and SAMLIdentityProvider.SendSSO include a userName parameter.
This is set as the SAML subject NameID in the SAML assertion.
Unless you have a different requirement, you probably don't need to revert to the low-level API.
To fix the build error you're seeing, simply add a reference to the System.Security assembly in your project as stated.
[/quote]

Hi,

thanks for the reply.. but some more doubts persist that i could not find in documentation..

1. but how about Issuer Id or Entity Id that needs to be passed ? Can that be done using high level api ?

2. Sorry I am new to .NET framework. Adding reference to the project.. how do I specify that in production environment ? is it a config file ?

thanks
Manu

The issuer name or entity ID of the local identity provider is the Name in your saml.config.
The issuer name or entity ID of the partner service provider is the Name in your saml.config.
You don’t have to pass in the Name as we pick this up automatically.
You only need to pass in the Name if calling SAMLIdentityProvider.InitiateSSO to identify which partner service provider to initiate SSO to.
Otherwise, the SAML API matches the issuer field in any message received from a partner service provider against the Names in your saml.config.

To add a reference, in Visual Studio, right click on your project in the Solution Explorer view and select Add > Reference.
Select Assemblies on the left side, scroll down and select System.Security.