-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: address code review findings from #71 and #80 #81
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
31296d2
fix: add thread-safe async locking to ProfileConnectionSource
joshsmithxrm 2c6b58f
fix: use ConcurrentBag for thread-safe provider tracking
joshsmithxrm 22e9261
fix: properly unregister MSAL cache in InteractiveBrowserCredentialPr…
joshsmithxrm 9b44a31
fix: properly unregister MSAL cache in GlobalDiscoveryService
joshsmithxrm 3dc668b
fix: remove redundant CancellationTokenSource from Program.cs
joshsmithxrm 7df3c9c
fix: use ConcurrentDictionary for entity type code cache
joshsmithxrm 3560286
refactor: extract duplicate ParseBypassPlugins to DataCommandGroup
joshsmithxrm 52bf3bb
chore: suppress NU1702 warning for cross-framework PPDS.Plugins refer…
joshsmithxrm 24b0f6f
fix: remove NU1903 vulnerability warning suppression
joshsmithxrm e726a2d
fix: use X509CertificateLoader for .NET 9+ certificate loading
joshsmithxrm 9feb599
fix: suppress SYSLIB0014 warning for ServicePointManager
joshsmithxrm 8308af0
fix: use async/await in thread safety tests (xUnit1031)
joshsmithxrm 77def06
fix: address 11 code review findings from #80
joshsmithxrm 1be65e9
fix: add AuthenticationOutput for configurable auth messaging (#80)
joshsmithxrm b74e145
fix: address remaining issue 71 code review findings (8, 12)
joshsmithxrm 88fc7da
refactor: extract phase processors from TieredImporter (#18)
joshsmithxrm 60c9374
fix: address PR review feedback (issues 1, 3, 4)
joshsmithxrm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| using System; | ||
|
|
||
| namespace PPDS.Auth; | ||
|
|
||
| /// <summary> | ||
| /// Controls authentication status output for the auth library. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// By default, authentication status messages are written to the console. | ||
| /// Library consumers who don't want console output can set <see cref="Writer"/> to null | ||
| /// or provide a custom action to redirect output. | ||
| /// </remarks> | ||
| public static class AuthenticationOutput | ||
| { | ||
| private static volatile Action<string>? _writer = Console.WriteLine; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the action used to write authentication status messages. | ||
| /// Set to null to suppress all output, or provide a custom action to redirect. | ||
| /// Default: Console.WriteLine | ||
| /// </summary> | ||
| /// <example> | ||
| /// <code> | ||
| /// // Suppress all auth output | ||
| /// AuthenticationOutput.Writer = null; | ||
| /// | ||
| /// // Redirect to a logger | ||
| /// AuthenticationOutput.Writer = message => logger.LogInformation(message); | ||
| /// </code> | ||
| /// </example> | ||
| public static Action<string>? Writer | ||
| { | ||
| get => _writer; | ||
| set => _writer = value; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Writes a status message using the configured writer. | ||
| /// Does nothing if Writer is null. | ||
| /// </summary> | ||
| /// <param name="message">The message to write.</param> | ||
| internal static void WriteLine(string message = "") | ||
| { | ||
| _writer?.Invoke(message); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Resets the writer to the default (Console.WriteLine). | ||
| /// </summary> | ||
| public static void Reset() | ||
| { | ||
| _writer = Console.WriteLine; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.