Improvements to dynamic client registration (#609)
* Add a delegate for handling the dynamic client registration response. * Support passing an initial access token for dynamic client registration.
This commit is contained in:
parent
2fa658e439
commit
f9129f5b28
1 changed files with 102 additions and 28 deletions
|
|
@ -31,9 +31,12 @@ var transport = new SseClientTransport(new()
|
|||
Name = "Secure Weather Client",
|
||||
OAuth = new()
|
||||
{
|
||||
ClientName = "ProtectedMcpClient",
|
||||
RedirectUri = new Uri("http://localhost:1179/callback"),
|
||||
AuthorizationRedirectDelegate = HandleAuthorizationUrlAsync,
|
||||
DynamicClientRegistration = new()
|
||||
{
|
||||
ClientName = "ProtectedMcpClient",
|
||||
},
|
||||
}
|
||||
}, httpClient, consoleLoggerFactory);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue