@@ -67,20 +67,20 @@ public class GenericOAuthProvider : IMcpCredentialProvider
6767 /// Initializes a new instance of the <see cref="GenericOAuthProvider"/> class.
6868 /// </summary>
6969 /// <param name="serverUrl">The MCP server URL.</param>
70- /// <param name="httpClient">The HTTP client to use for OAuth requests. If null, a default HttpClient will be used.</param>
71- /// <param name="authorizationHelpers">The authorization helpers.</param>
7270 /// <param name="clientId">OAuth client ID.</param>
7371 /// <param name="clientSecret">OAuth client secret.</param>
7472 /// <param name="redirectUri">OAuth redirect URI.</param>
73+ /// <param name="httpClient">The HTTP client to use for OAuth requests. If null, a default HttpClient will be used.</param>
74+ /// <param name="authorizationHelpers">The authorization helpers.</param>
7575 /// <param name="scopes">OAuth scopes.</param>
7676 /// <param name="logger">The logger instance. If null, a NullLogger will be used.</param>
7777 public GenericOAuthProvider (
7878 Uri serverUrl ,
79+ string clientId ,
80+ string clientSecret ,
81+ Uri redirectUri ,
7982 HttpClient ? httpClient = null ,
8083 AuthorizationHelpers ? authorizationHelpers = null ,
81- string clientId = "demo-client" ,
82- string clientSecret = "" ,
83- Uri ? redirectUri = null ,
8484 IEnumerable < string > ? scopes = null ,
8585 ILogger < GenericOAuthProvider > ? logger = null )
8686 : this ( serverUrl , httpClient , authorizationHelpers , clientId , clientSecret , redirectUri , scopes , logger , null , null )
@@ -105,7 +105,7 @@ public GenericOAuthProvider(
105105 AuthorizationHelpers ? authorizationHelpers ,
106106 string clientId ,
107107 string clientSecret ,
108- Uri ? redirectUri ,
108+ Uri redirectUri ,
109109 IEnumerable < string > ? scopes ,
110110 ILogger < GenericOAuthProvider > ? logger ,
111111 AuthorizationUrlHandler ? authorizationUrlHandler )
@@ -133,7 +133,7 @@ public GenericOAuthProvider(
133133 AuthorizationHelpers ? authorizationHelpers ,
134134 string clientId ,
135135 string clientSecret ,
136- Uri ? redirectUri ,
136+ Uri redirectUri ,
137137 IEnumerable < string > ? scopes ,
138138 ILogger < GenericOAuthProvider > ? logger ,
139139 Func < IReadOnlyList < Uri > , Uri ? > ? authServerSelector ,
@@ -146,10 +146,10 @@ public GenericOAuthProvider(
146146 _authorizationHelpers = authorizationHelpers ?? new AuthorizationHelpers ( _httpClient ) ;
147147 _logger = ( ILogger ? ) logger ?? NullLogger . Instance ;
148148
149- _redirectUri = redirectUri ?? new Uri ( "http://localhost:8080/callback" ) ;
149+ _redirectUri = redirectUri ;
150150 _scopes = scopes ? . ToList ( ) ?? [ ] ;
151- _clientId = clientId ?? "demo-client" ;
152- _clientSecret = clientSecret ?? "" ;
151+ _clientId = clientId ;
152+ _clientSecret = clientSecret ;
153153
154154 // Set up authorization server selection strategy
155155 _authServerSelector = authServerSelector ?? DefaultAuthServerSelector ;
0 commit comments