Skip to content

Commit b0d9932

Browse files
committed
No need to keep track of this
1 parent bdee0e3 commit b0d9932

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

samples/AuthorizationExample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public static async Task Main(string[] args)
1717

1818
// Configuration values for OAuth redirect
1919
string hostname = "localhost";
20-
int port = 8888;
21-
string callbackPath = "/oauth/callback";
20+
int port = 13261;
21+
string callbackPath = "/oauth/callback/";
2222

2323
// Set up the SSE transport with authorization support
2424
var transportOptions = new SseClientTransportOptions

src/ModelContextProtocol/Protocol/Transport/SseClientTransport.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,6 @@ public SseClientTransport(SseClientTransportOptions transportOptions, HttpClient
205205
};
206206
}
207207

208-
/// <summary>
209-
/// Creates a delegate that can handle the OAuth 2.0 authorization code flow using a local HTTP listener.
210-
/// </summary>
211-
/// <param name="openBrowser">A function that opens a URL in the browser.</param>
212-
/// <param name="listenPort">The local port to listen on for the redirect URI.</param>
213-
/// <param name="redirectPath">The path for the redirect URI.</param>
214-
/// <returns>A delegate that can be used for the <see cref="AuthorizationOptions.AuthorizeCallback"/> property.</returns>
215-
/// <remarks>
216-
/// This is a convenience method that calls <see cref="CreateHttpListenerAuthorizeCallback"/> with "localhost" as the hostname.
217-
/// </remarks>
218-
[Obsolete("Use CreateHttpListenerAuthorizeCallback instead. This method will be removed in a future version.")]
219-
public static Func<ClientMetadata, Task<(string RedirectUri, string Code)>> CreateLocalServerAuthorizeCallback(
220-
Func<string, Task> openBrowser,
221-
int listenPort = 8888,
222-
string redirectPath = "/callback")
223-
{
224-
return CreateHttpListenerAuthorizeCallback(openBrowser, "localhost", listenPort, redirectPath);
225-
}
226-
227208
/// <inheritdoc />
228209
public async Task<ITransport> ConnectAsync(CancellationToken cancellationToken = default)
229210
{

0 commit comments

Comments
 (0)