Repository navigation
AOT 3: Move authentication registration to an AOT-safe Abstractions registry #4821
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
Open
+3,458
−1,266
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8e4805a
Move authentication registration to an AOT-safe Abstractions registry
paulmedynski 9d87cb9
Address authentication registry feedback for #4821
paulmedynski 96efc3a
Report missing authentication providers as SqlException
paulmedynski ec78544
Align registry schema tests with parent parsing policy
paulmedynski e2ef260
Align provider schema tests with parent recovery policy
paulmedynski e157110
Preserve fatal Azure loader failures for #4821
paulmedynski 1c7c22b
Make Azure loader tests deterministic on netfx
paulmedynski 78d1fae
Fix Azure loader overload lookup in tests (#4821)
paulmedynski 5d9001e
Handle authentication configuration failures independently (#4821)
paulmedynski af66afd
Fix authentication registry review feedback for #4821
paulmedynski 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
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
37 changes: 37 additions & 0 deletions
37
src/Microsoft.Data.SqlClient.Extensions/Abstractions/doc/SqlAuthenticationInitializer.xml
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,37 @@ | ||
| <!-- | ||
| Licensed to the .NET Foundation under one or more agreements. | ||
| The .NET Foundation licenses this file to you under the MIT license. | ||
| See the LICENSE file in the project root for more information. | ||
| --> | ||
| <docs> | ||
| <members name="SqlAuthenticationInitializer"> | ||
| <SqlAuthenticationInitializer> | ||
| <summary>Initializes authentication providers configured in app.config.</summary> | ||
| <remarks> | ||
| Configured initializers run synchronously during registry bootstrap while the registry lock | ||
| is held. Calls to <see cref="SqlAuthenticationProvider.GetProvider"/> and | ||
| <see cref="SqlAuthenticationProvider.SetProvider"/> on the current thread are supported. | ||
| Do not synchronously wait for another thread that calls either method: that thread blocks | ||
| on the registry lock, causing a deadlock. | ||
| Recoverable initialization or registration failures stop this initializer and are traced, | ||
| but later configured providers and enabled Azure discovery are still attempted. | ||
| Fatal failures propagate. Earlier registrations and initializer side effects are not | ||
| rolled back. Enable tracing before the first registry access to capture these failures; | ||
| failed initialization is not retried until the application restarts. | ||
| </remarks> | ||
| </SqlAuthenticationInitializer> | ||
| <ctor> | ||
| <summary>Creates an authentication initializer.</summary> | ||
| </ctor> | ||
| <Initialize> | ||
| <summary>Registers application-configured authentication providers.</summary> | ||
| <remarks> | ||
| When invoked by registry bootstrap, this method executes while the registry lock is held. | ||
| Calls to <see cref="SqlAuthenticationProvider.GetProvider"/> and | ||
| <see cref="SqlAuthenticationProvider.SetProvider"/> on the current thread are supported. | ||
| Do not synchronously wait for another thread that calls either method. The other thread | ||
| blocks on the registry lock, causing a deadlock. | ||
| </remarks> | ||
| </Initialize> | ||
| </members> | ||
| </docs> |
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.
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.
The PR desc says it applies to .NET Framework as well, but here it says ".NET only driver retry/switch overrides". Can you clarify which one is true and update doc accordingly?