We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b501d23 commit c92343cCopy full SHA for c92343c
src/ModelContextProtocol/Authentication/AuthorizationDelegatingHandler.cs
@@ -17,7 +17,9 @@ public class AuthorizationDelegatingHandler : DelegatingHandler
17
/// <param name="authorizationProvider">The provider that supplies authentication tokens.</param>
18
public AuthorizationDelegatingHandler(IMcpAuthorizationProvider authorizationProvider)
19
{
20
- _authorizationProvider = authorizationProvider ?? throw new ArgumentNullException(nameof(authorizationProvider));
+ Throw.IfNull(authorizationProvider);
21
+
22
+ _authorizationProvider = authorizationProvider;
23
24
// Select first supported scheme as the default
25
_currentScheme = _authorizationProvider.SupportedSchemes.FirstOrDefault();
0 commit comments