2
votes

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://docs.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?

2
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
@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
No problems, @Nikhil, please consider my below answer. Note that the above link 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
Hi @Nikhil. Did either of the below answers help you?Chris Padgett

2 Answers

1
votes

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.

0
votes

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.