-
Notifications
You must be signed in to change notification settings - Fork 10.4k
59462 OIDC par failure #61947
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
bigred8982
wants to merge
13
commits into
dotnet:main
Choose a base branch
from
bigred8982:bigred8982/issue_59462_oidc-par-failure
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
59462 OIDC par failure #61947
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
286bbeb
Add event to allow caller to handle OIDC PAR failure.
bigred8982 15e29f9
Include test for OnPuthAuthorizationFailed event
bigred8982 1bd8045
Fix broken build due to copy/paste error
bigred8982 e1a07f9
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 d701189
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 b19473d
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 cdb14a4
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 c6065ad
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 b743fc0
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 8840008
Update src/Security/Authentication/OpenIdConnect/src/Events/PushedAut…
bigred8982 4bd20fe
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 b39968c
Update src/Security/Authentication/OpenIdConnect/src/OpenIdConnectHan…
bigred8982 9fde7cb
Merge branch 'dotnet:main' into bigred8982/issue_59462_oidc-par-failure
bigred8982 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
35 changes: 35 additions & 0 deletions
35
src/Security/Authentication/OpenIdConnect/src/Events/PushedAuthorizationFailedContext.cs
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,35 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.Http; | ||
|
||
namespace Microsoft.AspNetCore.Authentication.OpenIdConnect; | ||
|
||
/// <summary> | ||
/// A context for <see cref="OpenIdConnectEvents.PushAuthorizationFailed(PushedAuthorizationFailedContext)"/>. | ||
/// </summary> | ||
public sealed class PushedAuthorizationFailedContext : PropertiesContext<OpenIdConnectOptions> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of <see cref="PushedAuthorizationFailedContext"/>. | ||
/// </summary> | ||
/// <inheritdoc /> | ||
public PushedAuthorizationFailedContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, | ||
AuthenticationProperties properties, Exception exception) | ||
: base(context, scheme, options, properties) | ||
{ | ||
Exception = exception; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the exception associated with the failure. | ||
/// </summary> | ||
public Exception Exception { get; } | ||
|
||
/// <summary> | ||
/// Tells the handler that the OnPushAuthorizationFailed event has handled the process of the | ||
/// error and the handler does not need to throw an exception. | ||
/// </summary> | ||
public bool Handled { get; set; } | ||
} | ||
|
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
8 changes: 8 additions & 0 deletions
8
src/Security/Authentication/OpenIdConnect/src/PublicAPI.Unshipped.txt
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 |
---|---|---|
@@ -1 +1,9 @@ | ||
#nullable enable | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext.Exception.get -> System.Exception! | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext.Handled.get -> bool | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext.Handled.set -> void | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext.PushedAuthorizationFailedContext(Microsoft.AspNetCore.Http.HttpContext! context, Microsoft.AspNetCore.Authentication.AuthenticationScheme! scheme, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions! options, Microsoft.AspNetCore.Authentication.AuthenticationProperties! properties, System.Exception! exception) -> void | ||
virtual Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.PushAuthorizationFailed(Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext! context) -> System.Threading.Tasks.Task! | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.OnPushAuthorizationFailed.set -> void | ||
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.OnPushAuthorizationFailed.get -> System.Func<Microsoft.AspNetCore.Authentication.OpenIdConnect.PushedAuthorizationFailedContext!, System.Threading.Tasks.Task!>! |
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.
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 event ID was changed from 57 to 60, but this appears to be an existing log message that should maintain its original ID. This change could break logging consistency and any code that depends on the specific event ID.
Copilot uses AI. Check for mistakes.
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.
There were two values set for 57, which I assumed to be a mistake from a previous commit. I updated this to be the next unique number at the time. I am not sure if that was the correct move.