I am working on a test application in MVC for IdP-initiated single sign-on integration. I am the IdP.
I have a web app can be used to act as SP: http://billpay.local/sso/msazuretest/account/logon
I have the following questions:
- If I am using the high-level API to Initiate SSO from IdP, how does it know what SAML.config to use and how to create SAML assertion before sending?
- Do I need to include both IdP and SP configuration within the SAML.config file? Such as the one below.
<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<IdentityProvider
Name="TestIdentityProvider"
Description="Local Test Identity Provider">
<LocalCertificates>
<Certificate FileName="Certificates\idp.pfx" Password="123"/>
</LocalCertificates>
</IdentityProvider>
<PartnerServiceProviders>
<PartnerServiceProvider Name="MSAZURETEST"
AssertionConsumerServiceUrl="http://billpay.local/sso/msazuretest/account/logon"
SingleLogoutServiceUrl="http://billpay.local/sso/msazuretest/account/logout">
<PartnerCertificates>
<Certificate FileName="Certificates\sp.cer"/>
</PartnerCertificates>
</PartnerServiceProvider>
</PartnerServiceProviders>
</SAMLConfiguration>
- If I want the assertion to be signed and encrypted using SP public key before sending, what needs to be specified?
- I would like to retrieve the SAML.config from metadata, how can I do it? What method to use to initiate SSO? Looks like InitiateSSO() method doesn’t allow SAMLConfiguration to be specified.
SAMLIdentityProvider.InitiateSSO(Response, userName, attributes, relayState, assertionConsumerServiceUrl);
Thanks in advance.
Regards,
Thanks in advance.
Regards,
Louie