Skip to content

Commit de27715

Browse files
authored
Clarify InvokeHandlersAfterFailure (#36501)
1 parent 9aff054 commit de27715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Security/Authorization/Core/src/AuthorizationHandlerContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public virtual IEnumerable<AuthorizationFailureReason> FailureReasons
6767
=> (IEnumerable<AuthorizationFailureReason>?)_failedReasons ?? Array.Empty<AuthorizationFailureReason>();
6868

6969
/// <summary>
70-
/// Flag indicating whether the current authorization processing has failed.
70+
/// Flag indicating whether the current authorization processing has failed due to Fail being called.
7171
/// </summary>
7272
public virtual bool HasFailed { get { return _failCalled; } }
7373

src/Security/Authorization/Core/src/AuthorizationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class AuthorizationOptions
1414
private Dictionary<string, AuthorizationPolicy> PolicyMap { get; } = new Dictionary<string, AuthorizationPolicy>(StringComparer.OrdinalIgnoreCase);
1515

1616
/// <summary>
17-
/// Determines whether authentication handlers should be invoked after a failure.
17+
/// Determines whether authentication handlers should be invoked after <see cref="AuthorizationHandlerContext.HasFailed"/>.
1818
/// Defaults to true.
1919
/// </summary>
2020
public bool InvokeHandlersAfterFailure { get; set; } = true;

0 commit comments

Comments
 (0)