You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Add functionality to use AAD B2C authentication #186
I believe this requires us to update our dependency to enable, though I know there's a change in how MSAL is packaged, so I'm not familiar with which side of that gap we're on.
Extend MsalProvider and override the CreatePublicClientApplication function to add this functionality. Something like a "B2CMsalProvider". You can reference the original method to see how we do it and add in the line you need:
If you still think this would make a good addition to the toolkit and have the energy, I'd love someone to take a second look at the problem, think about the issue, propose a fix and put up a PR. Let us know if that sounds interesting to you and feel free to continue the conversation here in this issue :)
Activity
michael-hawker commentedon Jun 14, 2022
@tnsturm I believe you're talking about this API here?
I believe this requires us to update our dependency to enable, though I know there's a change in how MSAL is packaged, so I'm not familiar with which side of that gap we're on.
Not sure if @shweaver-MSFT remembers.
shweaver-MSFT commentedon Jun 14, 2022
I suggest either:
Create the PublicClientApplication object externally and pass it into the constructor.
Graph-Controls/CommunityToolkit.Authentication.Msal/MsalProvider.cs
Line 63 in 15513b1
Extend MsalProvider and override the CreatePublicClientApplication function to add this functionality. Something like a "B2CMsalProvider". You can reference the original method to see how we do it and add in the line you need:
Graph-Controls/CommunityToolkit.Authentication.Msal/MsalProvider.cs
Line 187 in 15513b1
If you still think this would make a good addition to the toolkit and have the energy, I'd love someone to take a second look at the problem, think about the issue, propose a fix and put up a PR. Let us know if that sounds interesting to you and feel free to continue the conversation here in this issue :)