-
Notifications
You must be signed in to change notification settings - Fork 653
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
Use of Deprecated Package #134
Comments
No, that's the latest version of that package. That one doesn't version with a number that matches the shared framework. https://www.nuget.org/packages/Microsoft.AspNetCore.Identity |
Sorry I don't understand - the latest version is deprecated as per the link you've provided? |
It's a false warning ... one doesn't typically use the package directly like this. Normally, this is used by the metapackage. I think a remark about this in the article makes sense. I'll open an issue and address it next week. I'll ping u on the issue in a moment. |
... and I'll check further on this. I actually thought that if the shared framework has the package reference that it wouldn't need to be in the app's project file. I'll investigate and get back to you shortly. |
Thanks - It would be good to have some clarity. I've used it in a .NET 7 project already directly and I've seen posts across the web where people are unsure about what they should be using in place of Microsoft.AspNetCore.Identity - or if it is good to continue using it. |
Yep! I was right. That package reference shouldn't be there. It's provided by the shared framework. I'll re-open and remove it now. Yes, you should be using it ... but NOT directly like this. I think Jeremy just made a slight mistake including it. It comes in via the shared framework. The app doesn't need a package reference for it. |
Ok ... we're good now ... fixed on commit ... Thanks for opening this issue! |
Thanks - I think if you just remove the package you'll have the following error: potentially this can be resolved by referencing System.Security.Claims |
I didn't that error here. Where is that being thrown? ... which project? ... and is that for custom code. We won't cover anything beyond the base use case; however, this sample will be expanded later to include a role claims endpoint in the backend so that the frontend can implement user roles. |
That's simply downloading your repository. No code changed. (I pulled the project into a VS solution but that's it). |
And sorry it's in the 8.0 Backend project as per my original screenshot. |
Ah! I see it had the MVC package there for it. I changed it to your suggestion of |
Fab thanks! :) |
That's what I had locally. Not sure why a delta existed between the repo and local app. VS these days makes namespace changes to files all by itself. I'll blame VS here for making my app correct! 😆 Thanks again for the issue. As you can see, we're still working a lot of 🪲 out of the docs and samples for 8.0. That process will continue for months. |
This is all good news as far as I'm concerned. Back in April I was working on a project to implement something like what you now have built in and much hair was lost figuring it out! 😆 |
I agree. We needed this for years ... and was asked for it quite a bit. We do need the roles piece for sure. However ... even in this form ... it shoudn't be too difficult for folks to roll their own controller into the backend and send back role claims for use by the frontend. We're going to leave the extra coverage on the other scenarios/endpoints (e.g., 2FA) over in the main doc set. That coverage is being worked on now at ... What I don't know is if they'll relent and provide a fully working implementation for token auth. Right now, they just guide toward it with notes and a partial implementation. I'm telling them on ... ... that I think it should be fully worked out and presented. |
Describe the issue
In your new BlazorWebAssemblyStandaloneWithIdentity project, in the backend you appear to be using the now deprecated package
Microsoft.AspNetCore.Identity 2.2.0?
Am I missing something?
To Reproduce
Steps to reproduce the behavior:
Open project and look at dependancies.
Expected behavior
No deprecated dependancies
Screenshots
Additional context
Add any other context about the issue here.
.NET Version
8.0
Issue Details
⚠ Do not edit this section. It is required for issue processing.
The text was updated successfully, but these errors were encountered: