OfficeDev / office-js-docs-pr

Microsoft Office Add-ins Documentation
https://learn.microsoft.com/office/dev/add-ins
Creative Commons Attribution 4.0 International
399 stars 245 forks source link

Where can I download the source of sample #3503

Open hengchengfei opened 2 years ago

hengchengfei commented 2 years ago

[Enter feedback here]

I want to download the source。


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

AlexJerabek commented 2 years ago

Thank you for the request @hengchengfei. Let me tag @davidchesnut to link to the SSO samples in the article.

davidchesnut commented 2 years ago

Hi @hengchengfei

That article is pretty old and we'll need to update it. Now we refer to the Azure and Microsoft identity platform for UI guidance and sign-in samples for most scenarios. There are some samples here that should help: https://docs.microsoft.com/azure/active-directory-b2c/quickstart-single-page-app

Cheers, David

davidchesnut commented 2 years ago

Tracking ADO#6180105

hengchengfei commented 2 years ago

@davidchesnut Thanks for your response.

Now, I am developing the dialog login function of add-in. The Azure link you provided is only the login function of the web page, and does not involve the Office addin and dialog functions.

davidchesnut commented 2 years ago

Hi @hengchengfei, sorry I misunderstood and thought you were looking for UX guidance. For Office you need to use the dialog API. There's more information at https://docs.microsoft.com/office/dev/add-ins/develop/auth-with-office-dialog-api. And for a samples showing how to use this API, please see https://github.com/OfficeDev/office-add-in-samples#auth-identity-and-single-sign-on-sso