Our service provider asked for the following information for the SAML integration.
- Identity Provider ID (e.g. http://myadfs.domain.com/adfs/services/trust)
- XML Meta Data (e.g. http://your-adfs-domain.com/Federation/Metadata/2007-06/Federationmetadata.xml)
- Username attribute (e.g. http://myadfs.domain.com/ws/2008/06/identity/claims/windowsaccountname)
Now it's my first time trying with SAML and I need to build the identity provider and I'd like to use ASP.NET Core Identity for user authentication.
As I understand it right, the flow would be
- From the service provider site, they have a button to sign in with SAML SSO
- Clicking on the button would redirect to identity provider's login page
- Put username and password and authenticate against our database using asp.net core identity
- If successful, return claim information
- Logged in to service provider site
I've researched and found several open-source SAML integrations with ASP.NET Core such as Sustainsys or ITfoxtec. Sustainsys has several samples and it seems like SampleIdentityServer4AspNetIdentity is the way to go.
- Is it the right one to build identity provider with .net identity?
- What are
new EntityId("https://localhost:44342/Saml2")
andnew EntityId("http://localhost:52071/Metadata")
inStartup.cs
and where can I get those values?
Any guidance would be appreciated.