Skip to content

Upgrade Office ASP.NET SSO to ASP.NET Core - why "Remove fallback code" (Office dialog)? #436

Open
@jimbarrett33

Description

The recent upgrade of ASP.NET SSO to use ASP.NET Core removes the fallback code which pops up the Office dialog does the complete auth flow with redirect to Azure AD and back to the web app servers-side code and then calls MS Graph. Why?

The Pull Request states "Remove fallback code as it now requires a second app registration which is a bit complex to include in this sample at this time."

Question 1: why remove this fallback code? I know it's answered by the PR comment but the prior sample with .NET 4.5+ was great because it included ALL the code needed for an add-in to handle SSO and Auth. Anyone that is developing a robust add-in and according to Microsoft Recommendation "should not rely on SSO as your add-in's only method of authentication."

Question 2: why does "upgrading" to ASP.NET Core require a second app registration? This is not clear to me.

I've been following and using the prior sample code (it works perfectly) and was waiting for (and appreciate) an updated sample with ASP.NET Core but it's really not as usable without the auth fallback code.

Thanks!

(Also, since the Office Docs have been updated, the Azure AD setup instructions for the previous full working sample are no longer available.)

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions