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

Issue: SharePoint SSO Component #280

Open
krriscode opened this issue Jan 7, 2025 · 1 comment
Open

Issue: SharePoint SSO Component #280

krriscode opened this issue Jan 7, 2025 · 1 comment

Comments

@krriscode
Copy link

Hi Ms Team,

I have used this code same for Copilot SSO https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html
The SSO is working fine as expected, it's not asking to login for already sign-in user on SharePoint

But I'm facing issue with SharePointSSOComponent in
https://github.com/microsoft/CopilotStudioSamples/tree/master/SharePointSSOComponent/src/extensions/pvaSso
second post activites https://directline.botframework.com/v3/directline/conversations/'$id'-us/activities

payload :
{
"type": "invoke",
"name": "signin/tokenExchange",
"value": {
"id": "efd68c13........",
"connectionName": "913848c13........",
"token": "ebyt-secrete.............................................................."
},
"from": {
"id": "my-userid@mail.com",
"name": "my-user-name",
"role": "user"
}
}
response error : {
"error": {
"code": "BotError",
"message": "Failed to send activity: bot returned an error"
},
"httpStatusCode": 412
}

@krriscode
Copy link
Author

krriscode commented Jan 7, 2025

For the first post activities, I'm getting status code 200, Ok

Hi @adilei, please guide to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants