AzureAD / microsoft-identity-web

Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
MIT License
679 stars 211 forks source link

Unable to use RequiredScopeAttribute in aspnetcore 2.1/2.2 targeting .net framework #1861

Open WillGunn opened 2 years ago

WillGunn commented 2 years ago

https://github.com/AzureAD/microsoft-identity-web/blob/a50c49fa43ba4f0d8d7846c6928397fcfacd987f/src/Microsoft.Identity.Web/Microsoft.Identity.Web.csproj#L43,L44 Those lines remove the ability to use the RequiredScopeAttribute (and others) in aspnetcore projects that target .net framework (net48 for reference in my case). Looking at the code I need from those two folders, I'm not seeing anything that would prevent .net framework support, so my question is, why is .net framework not supported for scope auth?

jmprieur commented 2 years ago

@WillGunn : Microsoft.Identity.Web is not officially supporting .NET Framework. We are going to support all frameworks (.NET Core, .NET, and OWIN) in v2.0.

Did you try to remove these lines and were you able to build the library? (I'm pretty sure it does not work)