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

Incompatible with Umbraco Cloud's Umbraco ID Auth Package. #41

Open
BenDuguid-MRM opened this issue Oct 31, 2024 · 1 comment
Open

Incompatible with Umbraco Cloud's Umbraco ID Auth Package. #41

BenDuguid-MRM opened this issue Oct 31, 2024 · 1 comment

Comments

@BenDuguid-MRM
Copy link

Umbraco Cloud sites use the Umbraco.Cloud.Identity.CMS package which references a rather old version of Microsoft.Identity.Web - for v13, that's >= 1.25.9, and v14 it's >= 1.26.0

Dropping in a version 2 release of Microsoft.Identity.Web (such as 2.21.1 used here) results in the following Exception:

TypeLoadException: Could not load type Microsoft.Identity.Web.MicrosoftIdentityOptions from assembly Microsoft.Identity.Web, Version=2.21.1.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae.

Removing the Umbaco.Cloud.Identity.CMS reference allows the site to load and AD auth to continue, but (obviously) removes the ability to log in via the Umbraco ID accounts (required for the support team, etc.).

I'll raise this with the Umbraco Cloud team as well, as I'm not sure why they've stuck with a version of the package that mainly targets .Net 5.0, but flagging here for others.

@stevetemple
Copy link
Member

Thanks, I've not used cloud much, so wasn't aware of the old version they're using

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

No branches or pull requests

2 participants