|
|
|
@ -78,10 +78,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessRequestContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -132,10 +129,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessRequestContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -177,10 +171,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessRequestContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -224,10 +215,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessChallengeContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
var properties = context.Transaction.GetProperty<AuthenticationProperties>(typeof(AuthenticationProperties).FullName!); |
|
|
|
if (properties is not { Dictionary.Count: > 0 }) |
|
|
|
@ -302,10 +290,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessChallengeContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
var properties = context.Transaction.GetProperty<AuthenticationProperties>(typeof(AuthenticationProperties).FullName!); |
|
|
|
if (properties is not null) |
|
|
|
@ -344,10 +329,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessSignInContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
var properties = context.Transaction.GetProperty<AuthenticationProperties>(typeof(AuthenticationProperties).FullName!); |
|
|
|
if (properties is not { Dictionary.Count: > 0 }) |
|
|
|
@ -423,10 +405,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(ProcessSignOutContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
var properties = context.Transaction.GetProperty<AuthenticationProperties>(typeof(AuthenticationProperties).FullName!); |
|
|
|
if (properties is not { Dictionary.Count: > 0 }) |
|
|
|
@ -501,10 +480,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -555,10 +531,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public async ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -641,10 +614,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public async ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -720,10 +690,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Request is not null, SR.GetResourceString(SR.ID4008)); |
|
|
|
|
|
|
|
@ -786,10 +753,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Request is not null, SR.GetResourceString(SR.ID4008)); |
|
|
|
|
|
|
|
@ -885,10 +849,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Request is not null, SR.GetResourceString(SR.ID4008)); |
|
|
|
|
|
|
|
@ -933,10 +894,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
switch (context.EndpointType) |
|
|
|
{ |
|
|
|
@ -983,10 +941,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Response is not null, SR.GetResourceString(SR.ID4007)); |
|
|
|
|
|
|
|
@ -1049,10 +1004,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -1102,10 +1054,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -1169,10 +1118,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -1213,10 +1159,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Response is not null, SR.GetResourceString(SR.ID4007)); |
|
|
|
|
|
|
|
@ -1330,10 +1273,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
// This handler only applies to OWIN requests. If The OWIN request cannot be resolved,
|
|
|
|
// this may indicate that the request was incorrectly processed by another server stack.
|
|
|
|
@ -1378,10 +1318,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public async ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Response is not null, SR.GetResourceString(SR.ID4007)); |
|
|
|
|
|
|
|
@ -1437,10 +1374,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Response is not null, SR.GetResourceString(SR.ID4007)); |
|
|
|
|
|
|
|
@ -1479,10 +1413,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public async ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
Debug.Assert(context.Transaction.Response is not null, SR.GetResourceString(SR.ID4007)); |
|
|
|
|
|
|
|
@ -1553,10 +1484,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
/// <inheritdoc/>
|
|
|
|
public ValueTask HandleAsync(TContext context) |
|
|
|
{ |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
} |
|
|
|
ArgumentNullException.ThrowIfNull(context); |
|
|
|
|
|
|
|
context.Logger.LogInformation(6145, SR.GetResourceString(SR.ID6145)); |
|
|
|
context.HandleRequest(); |
|
|
|
|