MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
277 stars 500 forks source link

Unable to get SSO token in outlook after updating to CloudAdapter #10888

Open Vignesh-s-s opened 1 month ago

Vignesh-s-s commented 1 month ago

Steps to reproduce

We have been using botframework adapter for our url unfurling scenario, we were able to get the card urfurling work fine in both Teams and Outlook with the SSO token, but after updating to CloudAdapter - https://learn.microsoft.com/en-us/javascript/api/botbuilder/cloudadapter?view=botbuilder-ts-latest we see that the SSO token is not returned.

While we debugged we found that below code that we use with CloudAdapter, the token response comes as undefined

const tokenResponse = await userTokenClient.getUserToken( context.activity.from.id, 'OAuthConnectionName', context.activity.channelId, magicCodeString );

    However we get the token response in case of MS Teams and hence the unfurling works there. Looks like this is an outlook specific issue with CloudAdapter usage.

Botframework adapter vs Cloud Adapter.docx

Expected behavior

SSO token should be returned in Outlook when unfurling

Actual behavior

SSO token is not returned in Outlook when unfurling

Error details

No response

microsoft-github-policy-service[bot] commented 1 month ago

Hi Vignesh-s-s! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Vaibhav-MSFT commented 1 month ago

Hello @Vignesh-s-s , Thanks for reporting your issue. We will test this and update you accordingly.

Vaibhav-MSFT commented 1 month ago

Hello @Vignesh-s-s , Sorry for the delay in response. We are also experiencing some issues with Cloud Adapter but not exactly able to repro the issue. Will provide you update asap.

Vignesh-s-s commented 1 month ago

@Vaibhav-MSFT Can you please elaborate what issues are you facing with cloud adapter?

Vaibhav-MSFT commented 1 month ago

@Vignesh-s-s , There are some more users who are encountering errors related to token in outlook also we are testing this using multiple samples to confirm if there is any issue related to it in outlook. We will provide you with updates accordingly.