|
|
|
@ -700,6 +700,10 @@ namespace OpenIddict.Server |
|
|
|
var notification = new ProcessAuthenticationContext(context.Transaction); |
|
|
|
await _dispatcher.DispatchAsync(notification); |
|
|
|
|
|
|
|
// Store the context object in the transaction so it can be later retrieved by handlers
|
|
|
|
// that want to access the authentication result without triggering a new authentication flow.
|
|
|
|
context.Transaction.SetProperty(typeof(ProcessAuthenticationContext).FullName!, notification); |
|
|
|
|
|
|
|
if (notification.IsRequestHandled) |
|
|
|
{ |
|
|
|
context.HandleRequest(); |
|
|
|
|