Skip to content

Fthakor/api package clients tests#14

Merged
aacebo merged 10 commits into
microsoft:mainfrom
fallothakor:fthakor/ApiPackageClientsTests
May 15, 2025
Merged

Fthakor/api package clients tests#14
aacebo merged 10 commits into
microsoft:mainfrom
fallothakor:fthakor/ApiPackageClientsTests

Conversation

@fallothakor

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread Libraries/Microsoft.Teams.Api/Clients/UserTokenClient.cs
Comment thread Tests/Microsoft.Teams.Api.Tests/Clients/UserTokenClientTests.cs Outdated
Comment thread Tests/Microsoft.Teams.Api.Tests/Clients/ConversationClientTests.cs Outdated
var req = HttpRequest.Post($"https://token.botframework.com/api/usertoken/GetAadTokens?{query}", body: request);
var res = await _http.SendAsync<IDictionary<string, TokenResponse>>(req, _cancellationToken);
var res = await _http.SendAsync<IDictionary<string, Token.Response>>(req, _cancellationToken);
return (IDictionary<string, Token.Response>)res.Body;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this cast?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no we dont, wanted to confirm the change first.

@aacebo
aacebo merged commit e5421e2 into microsoft:main May 15, 2025
corinagum added a commit that referenced this pull request May 5, 2026
Per team decision, the MCP client SSRF guard adds friction for legitimate
on-prem MCP customers and the underlying risk is low-likelihood. Reverting
the client-side URL validation work; the McpPlugin server auth (#14),
including the null-safe Logger fix, is kept.

Removes:
- UrlValidation.cs (and tests)
- McpClientPluginParams.AllowPrivateNetwork + ValidateUrl
- ValidateMcpServerUrlAsync calls in McpClientPlugin
corinagum added a commit that referenced this pull request May 6, 2026
Per team decision, the MCP client SSRF guard adds friction for legitimate
on-prem MCP customers and the underlying risk is low-likelihood. Reverting
the client-side URL validation work; the McpPlugin server auth (#14),
including the null-safe Logger fix, is kept.

Removes:
- UrlValidation.cs (and tests)
- McpClientPluginParams.AllowPrivateNetwork + ValidateUrl
- ValidateMcpServerUrlAsync calls in McpClientPlugin
corinagum added a commit that referenced this pull request May 6, 2026
Per team decision, the MCP client SSRF guard adds friction for legitimate
on-prem MCP customers and the underlying risk is low-likelihood. Reverting
the client-side URL validation work; the McpPlugin server auth (#14),
including the null-safe Logger fix, is kept.

Removes:
- UrlValidation.cs (and tests)
- McpClientPluginParams.AllowPrivateNetwork + ValidateUrl
- ValidateMcpServerUrlAsync calls in McpClientPlugin
corinagum added a commit that referenced this pull request May 11, 2026
Per team decision, the MCP client SSRF guard adds friction for legitimate
on-prem MCP customers and the underlying risk is low-likelihood. Reverting
the client-side URL validation work; the McpPlugin server auth (#14),
including the null-safe Logger fix, is kept.

Removes:
- UrlValidation.cs (and tests)
- McpClientPluginParams.AllowPrivateNetwork + ValidateUrl
- ValidateMcpServerUrlAsync calls in McpClientPlugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants