ComponentSpace

Forums



KeyInfo is defined in an assembly that is not referenced


KeyInfo is defined in an assembly that is not referenced

Author
Message
manusunil
manusunil
New Member
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)

Group: Forum Members
Posts: 4, Visits: 11
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
Attachments
keyinfo assembly.png (1 view, 36.00 KB)
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
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.

Regards
ComponentSpace Development
manusunil
manusunil
New Member
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)

Group: Forum Members
Posts: 4, Visits: 11
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.

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
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
The issuer name or entity ID of the local identity provider is the <IdentityProvider> Name in your saml.config.
The issuer name or entity ID of the partner service provider is the <PartnerServiceProvider> Name in your saml.config.
You don't have to pass in the <IdentityProvider> Name as we pick this up automatically.
You only need to pass in the <PartnerServiceProvider> 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 <PartnerServiceProvider> 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.

Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search