File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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 } ):") ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments