2

Guys I have found some links regarding SAML Authentication with AAD but when i go for SAML Authentication with AAD B2C and DotNet Core I didnt find any article on this.

I found that it can be implemented through Custom Policies but how? Didnt find any implementation.

Gone through the links below but havent worked out.

https://cmatskas.com/asp-net-core-saml-authentication-with-azure-ad/ https://learn.microsoft.com/en-us/azure/active-directory-b2c/saml-technical-profile.

It will be nice of you if anyone can help me out with any guidance or any solution so that we can implement SAML with AAD B2C and Dot NetCore?

  • Hi @Nikhil. Can I ask why you are planning for SAML when, by default, both .NET Core and Azure AD B2C support OpenID Connect? – Chris Padgett Jul 10 '19 at 22:43
  • @ChrisPadgett Thanks for you suggestion but we having a limitation to configure SSO using SAML only. If you can help regarding SAML with AAD B2C and Core will be appreciable. – Nikhil Goyal Jul 11 '19 at 06:38
  • No problems, @Nikhil, please consider my below answer. Note that [the above link](https://cmatskas.com/asp-net-core-saml-authentication-with-azure-ad/) is referring to the WS-Federation protocol, not SAML. Azure AD B2C has support (in preview) for SAML but it doesn't support WS-Federation. – Chris Padgett Jul 11 '19 at 06:58
  • Hi @Nikhil. Did either of the below answers help you? – Chris Padgett Jul 16 '19 at 06:52

2 Answers2

1

SAML in B2C using custom policies.

B2C sample code for a web application using .NET Core.

Custom policies are complex - this may help you plus there is a link to a training course at the end.

rbrayb
  • 46,440
  • 34
  • 114
  • 174
0

For information about creating a SAML Relying Party policy for Azure AD B2C, see this sample policy.

(Note that, as at 11 July 2019, support for a SAML Relying Party policy is a preview feature.)

Refer to answers for this SO question for ASP.NET Core authentication middleware that is available for SAML.

Chris Padgett
  • 14,186
  • 1
  • 15
  • 28