Skip to content

Commit d1f30f8

Browse files
committed
Tweaks to config
1 parent 638bd35 commit d1f30f8

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

samples/SecureWeatherClient/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static async Task Main(string[] args)
3030
};
3131

3232
var httpClient = new HttpClient(oauthHandler);
33-
var serverUrl = "http://localhost:55598/sse"; // Default server URL
33+
var serverUrl = "http://localhost:7071/sse"; // Default server URL
3434

3535
// Allow the user to specify a different server URL
3636
Console.WriteLine($"Server URL (press Enter for default: {serverUrl}):");

samples/SecureWeatherServer/Program.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,9 @@
6868
.WithHttpTransport()
6969
.WithAuthorization(metadata =>
7070
{
71-
// Configure the OAuth metadata for this server
72-
metadata.AuthorizationServers.Add(new Uri("https://auth.example.com"));
73-
74-
75-
// Define the scopes this server supports
71+
metadata.AuthorizationServers.Add(new Uri("https://login.microsoftonline.com/a2213e1c-e51e-4304-9a0d-effe57f31655/v2.0"));
7672
metadata.ScopesSupported.AddRange(["weather.read", "weather.write"]);
77-
78-
// Add optional documentation
73+
metadata.BearerMethodsSupported.Add("header");
7974
metadata.ResourceDocumentation = new Uri("https://docs.example.com/api/weather");
8075
});
8176

0 commit comments

Comments
 (0)