-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Implemement OnBehalfOfCredential #22146
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
264bff6
SupportsCaching property, OBO credential
christothes 1eaca9f
export
christothes 3abc6a3
BAP test
christothes 568908a
missing xml docs
christothes 5287642
CredentialTestBase
christothes 66adcea
add new virtual to UnsafeTokenCacheOptions
christothes ac08680
refactor UserAssertionScope
christothes 0bb3d6a
merge
christothes 1a7b5c1
export
christothes ae2b022
UnsafeTokenCacheOptions and TokenCacheNotificationDetails
christothes 05fee10
tweaks
christothes cc4ac48
Merge remote-tracking branch 'upstream/main' into chriss/OnBehalfOf
christothes 5029352
Merge remote-tracking branch 'upstream/main' into chriss/OnBehalfOf
christothes 64d2788
fb
christothes 4a68ef1
refactor using AccessToken.RefreshOn
christothes 6be7493
export
christothes 7f52c10
fb
christothes 8a6be33
tweaks
christothes 0440c00
remove comment
christothes 52fe1b1
Merge remote-tracking branch 'upstream/main' into chriss/OnBehalfOf
christothes 916eed1
Merge branch 'chriss/OnBehalfOf' of https://github.com/christothes/az…
christothes d7b582d
use DateTimeOffset.MinValue as no-cache indicator
christothes 3b10559
protect against datetimeoffset underflow
christothes cecffe1
update RefreshOn doc comment
christothes cc7fd2f
Simple OBO
christothes bab4afc
revert core changes
christothes 837d1d6
proj tweak
christothes ea9066f
merge
christothes baed5fe
more ctor overloads
christothes cf193ab
fb
christothes aea16af
merge
christothes 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 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 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 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
17 changes: 17 additions & 0 deletions
17
sdk/identity/Azure.Identity/src/IX509Certificate2Provider.cs
This file contains 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,17 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Security.Cryptography.X509Certificates; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Azure.Identity | ||
{ | ||
/// <summary> | ||
/// IX509Certificate2Provider provides a way to control how the X509Certificate2 object is fetched. | ||
/// </summary> | ||
internal interface IX509Certificate2Provider | ||
{ | ||
ValueTask<X509Certificate2> GetCertificateAsync(bool async, CancellationToken cancellationToken); | ||
} | ||
} |
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.
I think this feature deserves a sample.
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.
Agreed - I plan to add one in a follow up PR