-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id web extension updates #3100
id web extension updates #3100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far.
This could be a mergeable increment already
I've asked a couple of questions
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensionOptions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensionOptions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensionOptions.cs
Outdated
Show resolved
Hide resolved
[Fact] | ||
public void InvokeOnBeforeTokenAcquisitionForApp_InvokesEvent() | ||
public async Task InvokeOnBeforeTokenAcquisitionForApp_InvokesEvent() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a hard time mocking MSAL components directly with NSubstitute because of MSAL's implementation. Using the Http mocking infrastructure instead.
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensions.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Web.Test/TokenAcquisitionAddInTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Web.Test/TokenAcquisitionAddInTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Web.Test/TokenAcquisitionAddInTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Web.Test/TokenAcquisitionAddInTests.cs
Outdated
Show resolved
Hide resolved
I'm surprised there is no API file to update? |
@jennyf19 I think the extension is added with the new api here https://github.com/AzureAD/microsoft-identity-web/pull/3100/files#diff-811295c0de57c7f8e1b4e4d60c4151ea7de5b527bc12b22796a93ba377ab03e0 Unless I misunderstand what an api file is? |
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensionOptions.cs
Show resolved
Hide resolved
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisitionExtensionOptions.cs
Show resolved
Hide resolved
# Conflicts: # Directory.Build.props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* First cut or proto for IdWeb add-ins * Preparing work for CDT * fix clone issue * remove cdt tests * remove test * remove endProject * fix sln * Apply suggestions from code review fix sln * Updarting to MSAL.NET 4.65.2-preview and fixing Travis's change * Update NuGet.Config * Update NuGet.Config * Update NuGet.Config * Update NuGet.Config * Updating the signature of the delegates * Update to use MSAL.NET preview * Fixing a cloning issue * use msal preview version * id web extension updates (#3100) * WIP Refactoring code * Updating test * Updating test * Clean up. Removing future code * Creating partial class * PR Feedback * internal api updates * Update public api --------- Co-authored-by: trwalke <trwalke@microsoft.com> * Fix Unshipped files for TokenAcquisition --------- Co-authored-by: Jenny Ferries <jeferrie@microsoft.com> Co-authored-by: Travis Walker <travis.walker@microsoft.com> Co-authored-by: trwalke <trwalke@microsoft.com>
Updating extension
Work left (addressing PR feedback)
TokenAcquisitionAddInOptions
toTokenAcquisitionExtensionOptions
tokenAcquisitionAddInOptionsMonitor
variable totokenAcquisitionExtensionOptionsMonitor
, andaddInOptions
totokenAcquisitionExtensionOptions
in TokenAcquisition.cs#if FUTURE
.