Skip to content
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

Microsoft.Identity.Web token acquisition extensions #3005

Merged
merged 25 commits into from
Oct 25, 2024

Conversation

jmprieur
Copy link
Collaborator

@jmprieur jmprieur commented Sep 9, 2024

Work left (addressing PR feedback)

  • Rename the TokenAcquisitionAddInOptions to TokenAcquisitionExtensionOptions
  • Rename the tokenAcquisitionAddInOptionsMonitor variable to tokenAcquisitionExtensionOptionsMonitor, and addInOptions to tokenAcquisitionExtensionOptions in TokenAcquisition.cs
  • Split the delegages/types in the current file TokenAcquisitionAddIn.cs to their own files.
  • For the moment (until we add more extensions), add the events that are not used by the product in a #if FUTURE.
  • Create a better end to end test (using the ExtraParameters, with extension methods to set a Prefix), and adding a prefix in front of the acquired token?

NuGet.Config Outdated Show resolved Hide resolved
NuGet.Config Outdated Show resolved Hide resolved
NuGet.Config Outdated Show resolved Hide resolved
@jmprieur jmprieur marked this pull request as ready for review October 3, 2024 00:14
@jmprieur jmprieur requested a review from a team as a code owner October 3, 2024 00:14
@jmprieur jmprieur requested review from bgavrilMS and jennyf19 October 3, 2024 00:21
@jmprieur jmprieur changed the title Prototype of Microsoft.Identity.Web token acquisition add-ins [Do not merge before MSAL non-preview] Prototype of Microsoft.Identity.Web token acquisition add-ins Oct 3, 2024
Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExtraParameters, OnAfterTokenAcquisition and OnBuildConfidentialClientApplication are not used / invoked by the product code.

Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline about unused events. Not blocking on this.

If you want to leave them in, maybe throw an "NotImplementedException" when an event is registered?

@trwalke
Copy link
Member

trwalke commented Oct 22, 2024

Working on addressing PR feedback and finishing PR

@trwalke
Copy link
Member

trwalke commented Oct 23, 2024

Merging from here: #3100

jmprieur and others added 2 commits October 24, 2024 11:01
* 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>
@jmprieur jmprieur changed the title [Do not merge before MSAL non-preview] Prototype of Microsoft.Identity.Web token acquisition add-ins Microsoft.Identity.Web token acquisition extensions Oct 24, 2024
@jmprieur jmprieur requested a review from bgavrilMS October 24, 2024 22:21
@jmprieur jmprieur merged commit 50bdedf into master Oct 25, 2024
5 checks passed
@jmprieur jmprieur deleted the jmprieur/IdWebAddIns branch October 25, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants