Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "authId" and "connectionName" properties to ExternalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest #2729

Merged
merged 7 commits into from
Mar 5, 2025

Conversation

jekloudaMSFT
Copy link
Contributor

For more information about how to contribute to this repo, visit this page.

Description

This PR adds "authId" and "connectionName" parameters to the ExternalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest API. These parameters are required from the app to complete the original request.

Main changes in the PR:

  1. Add "authId" and "connectionName" parameters to the authenticateWithSSOAndResendRequest function in packages/teams-js/src/private/externalAppAuthenticationForCEA.ts.

Validation

Validation performed:

  1. Tested against corresponding changes in the host SDK.

Unit Tests added:

Unit tests are required for all changes. If no unit tests were added as part of this change, please explain why they aren't necessary.

Yes, updated existing tests to use new parameters

End-to-end tests added:

No, added on host SDK

Additional Requirements

Change file added:

Ensure the change file meets the formatting requirements.

Yes

@jekloudaMSFT jekloudaMSFT requested a review from a team as a code owner February 21, 2025 00:31
Copy link
Contributor

github-actions bot commented Feb 21, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/teams-js/dist/esm/packages/teams-js/src/index.js 180.53 KB (+0.02% 🔺) 3.7 s (+0.02% 🔺) 67 ms (-14.7% 🔽) 3.7 s

@@ -161,6 +161,8 @@ const AuthenticateWithSSOAndResendRequestForCEA = (): React.ReactElement =>
conversationId: string;
authTokenRequest: externalAppAuthentication.AuthTokenRequestParameters;
originalRequestInfo: externalAppAuthentication.IActionExecuteInvokeRequest;
authId: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can authId and connectionName be part of an interface that extends AuthTokenRequestParameters?

Copy link
Contributor

Choose a reason for hiding this comment

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

done!

@jekloudaMSFT jekloudaMSFT merged commit d1064a5 into main Mar 5, 2025
58 checks passed
@jekloudaMSFT jekloudaMSFT deleted the jeklouda/updateCeaAuth branch March 5, 2025 21:30
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.

4 participants