-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
base: main
Are you sure you want to change the base?
59462 OIDC par failure #61947
Changes from 9 commits
286bbeb
15e29f9
1bd8045
e1a07f9
d701189
b19473d
cdb14a4
c6065ad
b743fc0
8840008
4bd20fe
b39968c
9fde7cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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.PushAuthorization(PushedAuthorizationContext)"/>. | ||
/// </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; } | ||
} | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -74,7 +74,7 @@ internal static partial class LoggingExtensions | |||||
[LoggerMessage(37, LogLevel.Debug, "The UserInformationReceived event returned Skipped.", EventName = "UserInformationReceivedSkipped")] | ||||||
public static partial void UserInformationReceivedSkipped(this ILogger logger); | ||||||
|
||||||
[LoggerMessage(57, LogLevel.Debug, "The PushAuthorization event handled client authentication", EventName = "PushAuthorizationHandledClientAuthentication")] | ||||||
[LoggerMessage(60, LogLevel.Debug, "The PushAuthorization event handled client authentication", EventName = "PushAuthorizationHandledClientAuthentication")] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||||||
public static partial void PushAuthorizationHandledClientAuthentication(this ILogger logger); | ||||||
|
||||||
[LoggerMessage(58, LogLevel.Debug, "The PushAuthorization event handled pushing authorization", EventName = "PushAuthorizationHandledPush")] | ||||||
|
@@ -83,6 +83,9 @@ internal static partial class LoggingExtensions | |||||
[LoggerMessage(59, LogLevel.Debug, "The PushAuthorization event skipped pushing authorization", EventName = "PushAuthorizationSkippedPush")] | ||||||
public static partial void PushAuthorizationSkippedPush(this ILogger logger); | ||||||
|
||||||
[LoggerMessage(61, LogLevel.Debug, "PushAuthorizationFailed.HandledResponse", EventName = "PushAuthorizationFailedHandledResponse")] | ||||||
public static partial void PushAuthorizationFailedHandledResponse(this ILogger logger); | ||||||
|
||||||
[LoggerMessage(3, LogLevel.Warning, "The query string for Logout is not a well-formed URI. Redirect URI: '{RedirectUrl}'.", EventName = "InvalidLogoutQueryStringRedirectUrl")] | ||||||
public static partial void InvalidLogoutQueryStringRedirectUrl(this ILogger logger, string redirectUrl); | ||||||
|
||||||
|
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!>! |
Uh oh!
There was an error while loading. Please reload this page.