Office 365 Outlook Add-in SSO

%3CLINGO-SUB%20id%3D%22lingo-sub-1635831%22%20slang%3D%22en-US%22%3EOffice%20365%20Outlook%20Add-in%20SSO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1635831%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20found%20the%20example%20of%20Outlook%20Add-in%2C%20with%20Single%20Sign-on%20is%20not%20working%20in%20supplied%20ZIP%20file%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsamples%2Fofficedev%2Foutlook-add-in-attachments-demo%2Foutlook-ribbon-addin%2F%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsamples%2Fofficedev%2Foutlook-add-in-attachments-demo%2Foutlook-ribbon-addin%2F%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20number%20of%20issues%2C%20but%20in%20essence%2C%20upon%20communicating%20with%20locally%20hosted%20web%20service%3A%20%2Fapi%2FSaveAttachments%2C%20the%20token%20is%20invalid%20and%20the%20service%20keeps%20returning%20400%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20discovered%20that%20the%20Claim%20schema%2C%20referenced%20in%20SaveAttachmentsController.cs%20is%20missing%3A%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fidentity%2Fclaims%2Fscope%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fidentity%2Fclaims%2Fscope.%3C%2FA%3E%26nbsp%3BI%20also%20have%20discovered%20that%20the%20scope%20list%20is%20referenced%203%20with%20different%20values%3A%3C%2FP%3E%3COL%3E%3CLI%3Eauthconfig.js%3C%2FLI%3E%3CLI%3EAttachmentDemo.xml%3C%2FLI%3E%3CLI%3ESaveAttachmentsController.cs%3C%2FLI%3E%3C%2FOL%3E%3CP%3ECould%20you%20please%20review%20this%20solution%20and%20supply%20working%20example%3F%3C%2FP%3E%3CP%3EMany%20thanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPiotr%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

I have found the example of Outlook Add-in, with Single Sign-on is not working in supplied ZIP file: https://docs.microsoft.com/en-us/samples/officedev/outlook-add-in-attachments-demo/outlook-ribbon-ad...

 

There are number of issues, but in essence, upon communicating with locally hosted web service: /api/SaveAttachments, the token is invalid and the service keeps returning 400 error.

 

I have discovered that the Claim schema, referenced in SaveAttachmentsController.cs is missing: http://schemas.microsoft.com/identity/claims/scope. I also have discovered that the scope list is referenced 3 with different values:

  1. authconfig.js
  2. AttachmentDemo.xml
  3. SaveAttachmentsController.cs

Could you please review this solution and supply working example?

Many thanks,

 

Piotr

1 Reply
Hi,
you've posted your topic in Cortana community.
Office 365 community is here:
https://techcommunity.microsoft.com/t5/office-365/ct-p/Office365