in the blazor ecommerce course you did not implement it. and you also didn't put in Google login, that's missing. Udemy. and the application you will update to. version 8? add at least password recovery
Came here after doing the Blazor e commerc course. I glad i found this video because i am working on an app with better auth, I used your method and Gmail’s SMTP! Thank you Patrick!
Thanks for all your hard work in creating great content for Blazor! I've subscribed to a couple of your lessons via Udemy when I first started learning Blazor from MVC. I am hoping that someday you can tackle Passwordless Authentication/ Fido2/ WebAuthn in a Blazor WASM app with a Hosted Asp.Net Identity Server that we've implemented in your previous tutorials with JWT... I've managed to piece it together somewhat to where it is workable. But all the examples I've come across are MVC and am surprised I've not seen anything like this in the Blazor space! I mean really Blazor's cutting edge... it should be at the forefront of passwordless!
Wow! Thank you sooo much! I highly appreciate that! 😊 Let me put the passwordless authentication on my backlog. It's an interesting topic, for sure. Cheers!
Brilliant work Patrick! I've been having issues rebuilding my website (& another project) for a while now but following along with this video, I managed to get it all sorted out and connected to my database in less than an hour! Your tutorials are clearly laid out so it's easy to follow and it's almost effortless. Thank you! I was wondering, would you be able to do a tutorial like this one (user registration and login and database connectivity via Entity Framework) that includes the ability to Login with Google & Facebook.. and potentially store the user information in the database once authenticated? There are a lot of other tutorials on RUclips that supposedly offer that already but with .NET 6 I've been running into strange problems and finding it difficult to 'convert' some of the code from MVC projects, so that it's compatible with just an API/Controller. I understand this may be a big ask but it's driving me mad! Thanks so much for all your work that you do to help us all learn easier. You're awesome :)
Wow, Ciaran, thank you so much for your amazing feedback! Really means a lot to me. Authentication with Google (Twitter, etc.) is already on the roadmap. So, stay tuned. It is coming. Cheers! 😊
@@PatrickGod You're welcome! I have a habit of going very in-depth with.. well everything really, so having a solid foundation to learn from is mandatory in my mind.. that's where your tutorials come into play. That's great to hear! I'm very much looking forward to learning more from you and using this new knowledge to incorporate into my own projects. Stay awesome!😁
Hi Patrick, I am a huge fan of your work, I was that hoping you would make a video that shows the whole process of JWT + Login + Local Storage that will save userid in the order table of blazor ecommerce once an user orders a product. Thank you so much for your effort. ❤❤❤
18:37 it almost never works with EF as dependencies. In my case the rebuild solution is not a viable option and will lead to the same error. I found on SO that you have to: 1. Right click the project > Select "Unload Project" 2. Check the project file if all the dependencies are there 3. If they are there > Right click > "Reload Project" 4. Works again I hate this but there are solution for this. Though all the problems I encountered also happened with the Enterprise Edition so all editions are bad in that regard.
Hi Patrick, i hope one day you will make a video that similar to this but with Repository pattern / Solid principles instead of fat controller. Thanks in advance and i am really one of the biggest fan of yours!
At 14:10 when you set the Users property using a => shortcut, doesn't that make it a readonly property since => means Users only has a getter? If so, then how are we able to modify Users later?
At 32:35 you create a verification token purely by random 64 characters. With a large userbase and/or long running app you risk duplicate keys. you could check if the key already exists, but why dont you just use a Guid in Textform? As network equipment, and current time are part of creating a Guid it is collision free per definition.
Great content! At 26min mark you compare emails if they already exist. This should be a string.compare with case insensitive compare rather than a == . otherwise you can use same email with different casing
This actually isn't necessarily true (and isn't true here). It's an EF expression, so it actually gets interpreted to `email = @email` in the database query. And it depends on the database you're using of course, but SQL Server string comparison is case insensitive by default.
Yeah I'm definitely getting funky behavior with VS 2022. Each version had different mess-ups. Blazor is the worst handled by the IDE. Goes to show how much work is behind getting everything to work right.
You should have seen the state of dotnet 6-7 years ago. Every time we hired a new dev we had to spend like 2 weeks getting everything installed and running on their machine. In comparison modern dotnet is dreamy. 😂
In case anyone want to send an email with the confirmation link, the verify method should be a Get method. It took me like 30 minutes to realize why it wasnt working :))
Hello dear Mr.God, I hope everything goes well for you and yours, I would like to ask you, if it is possible, make a video about using "record" and whats the best practice of use it inside the code also about the "with", Thanks in advanced Shahab
Is this something you do in production or just as a pet project? Cause in prod you use Identity Framework for all this stuff. My question would be if this would be something you would do if you are already using entity framework.
patrick god, could you help me, making a video explaining how to save multiple files with inputfile but save them in a local folder and show that local path in the database, it would be very helpful since I've been trying for a long time... with blazor webassembly
Hi! Could you please do a video creating an IdentityServer with openiddict? I'm seeing that Microsoft is dropping support for it and it would be a good idea to learn how to make a working alternative. Thanks 😃
Hello. Thanks for the tutorial. I have it working and have the full Request Url sent with an email. However clicking the link just gives a 405 error and user does not get verified. Any suggestions how to solve this? Thanks
Hello i have a question, What if i get an exception on my DataContext.cs Can i handle it on UserController.cs sending back to the user a StatusCode 500 ? The problem with that is my Cnstructor gets a return value, i dont know if it's the best way to handle this.. wanted to handle exceptions when access to database is compromised.
hello, is it valid to create a hash with DateTime.Now().ToString() instead of Convert.ToHexString(Random....) in the Forgot Password Feature or is there a problem?
🚀 Join the .NET Web Academy with a 30% discount - closing soon!
👉 www.dotnetwebacademy.com/courses/academy?coupon=dnwas23yt
in the blazor ecommerce course you did not implement it. and you also didn't put in Google login, that's missing. Udemy.
and the application you will update to. version 8?
add at least password recovery
Came here after doing the Blazor e commerc course. I glad i found this video because i am working on an app with better auth, I used your method and Gmail’s SMTP!
Thank you Patrick!
I just felt I became God in user authentications after watching this. Thank you so much Patrick! Happy New Year!
Thanks!
Thanks for all your hard work in creating great content for Blazor! I've subscribed to a couple of your lessons via Udemy when I first started learning Blazor from MVC. I am hoping that someday you can tackle Passwordless Authentication/ Fido2/ WebAuthn in a Blazor WASM app with a Hosted Asp.Net Identity Server that we've implemented in your previous tutorials with JWT... I've managed to piece it together somewhat to where it is workable. But all the examples I've come across are MVC and am surprised I've not seen anything like this in the Blazor space! I mean really Blazor's cutting edge... it should be at the forefront of passwordless!
Wow! Thank you sooo much! I highly appreciate that! 😊
Let me put the passwordless authentication on my backlog. It's an interesting topic, for sure. Cheers!
Very nice video, good pace, well explained and understandable. Thank you Patrick.
that was amazing man, appriciate the concept
Brilliant work Patrick!
I've been having issues rebuilding my website (& another project) for a while now but following along with this video, I managed to get it all sorted out and connected to my database in less than an hour!
Your tutorials are clearly laid out so it's easy to follow and it's almost effortless. Thank you!
I was wondering, would you be able to do a tutorial like this one (user registration and login and database connectivity via Entity Framework) that includes the ability to Login with Google & Facebook.. and potentially store the user information in the database once authenticated?
There are a lot of other tutorials on RUclips that supposedly offer that already but with .NET 6 I've been running into strange problems and finding it difficult to 'convert' some of the code from MVC projects, so that it's compatible with just an API/Controller. I understand this may be a big ask but it's driving me mad!
Thanks so much for all your work that you do to help us all learn easier. You're awesome :)
Wow, Ciaran, thank you so much for your amazing feedback! Really means a lot to me. Authentication with Google (Twitter, etc.) is already on the roadmap. So, stay tuned. It is coming. Cheers! 😊
@@PatrickGod
You're welcome!
I have a habit of going very in-depth with.. well everything really, so having a solid foundation to learn from is mandatory in my mind.. that's where your tutorials come into play.
That's great to hear!
I'm very much looking forward to learning more from you and using this new knowledge to incorporate into my own projects.
Stay awesome!😁
Hey Patrick, once more, I want to thank you for creating such a clear video. 👏
Hi Patrick, I am a huge fan of your work, I was that hoping you would make a video that shows the whole process of JWT + Login + Local Storage that will save userid in the order table of blazor ecommerce once an user orders a product. Thank you so much for your effort. ❤❤❤
18:37 it almost never works with EF as dependencies. In my case the rebuild solution is not a viable option and will lead to the same error. I found on SO that you have to:
1. Right click the project > Select "Unload Project"
2. Check the project file if all the dependencies are there
3. If they are there > Right click > "Reload Project"
4. Works again
I hate this but there are solution for this. Though all the problems I encountered also happened with the Enterprise Edition so all editions are bad in that regard.
Thank you Patrick!
Thank you for your simple and understandable explanation, best regards
really love your guides. thank you so much. I will likely be doing the udemy course soon.
Amazing content, Thanks for the quick and robust tutorial.
Hi Patrick, i hope one day you will make a video that similar to this but with Repository pattern / Solid principles instead of fat controller. Thanks in advance and i am really one of the biggest fan of yours!
Good job Patrick.
Thank you! 😊
I appreciate your job, It helped me so much greets from UBT
Very clear and on point!
At 14:10 when you set the Users property using a => shortcut, doesn't that make it a readonly property since => means Users only has a getter? If so, then how are we able to modify Users later?
we are waiting for more of your videos!
Watching your first video 😊 . And it was amazing 🔥 make me subscribe immediately 👍
Awesome! Thank you so much!! 😀
At 32:35 you create a verification token purely by random 64 characters. With a large userbase and/or long running app you risk duplicate keys. you could check if the key already exists, but why dont you just use a Guid in Textform? As network equipment, and current time are part of creating a Guid it is collision free per definition.
I love you! Thanks for all!
Love you Patrick YOU ARE MY HERO~😎
Great content!
At 26min mark you compare emails if they already exist. This should be a string.compare with case insensitive compare rather than a == . otherwise you can use same email with different casing
This actually isn't necessarily true (and isn't true here). It's an EF expression, so it actually gets interpreted to `email = @email` in the database query. And it depends on the database you're using of course, but SQL Server string comparison is case insensitive by default.
Yeah I'm definitely getting funky behavior with VS 2022. Each version had different mess-ups. Blazor is the worst handled by the IDE. Goes to show how much work is behind getting everything to work right.
Thanks for sharing that. 😁
You should have seen the state of dotnet 6-7 years ago. Every time we hired a new dev we had to spend like 2 weeks getting everything installed and running on their machine. In comparison modern dotnet is dreamy. 😂
Thank you. Amazing content
My pleasure!
Great tutorial 👍🏿
Glad you liked it! Thank you very much!
Hi Patrick, could you update your courses in udemy and complete the work you're done for those courses?
In case anyone want to send an email with the confirmation link, the verify method should be a Get method. It took me like 30 minutes to realize why it wasnt working :))
Hi how to verify phone number and use phone number as primary contact like when login time we use phone numbers and password to login
I have heard very bad about Blazor performance compared to a Vue or React front-end, can you enlight me about it?
Thank you Sir! But how to implement views?? Thanks.
Muchas gracias Patricio Dios ❤️
great tutorial really helpful please can you do a tutorial on how to consume api's that have multiple headers in dotnet
Hello dear Mr.God,
I hope everything goes well for you and yours,
I would like to ask you, if it is possible, make a video about using "record" and whats the best practice of use it inside the code also about the "with",
Thanks in advanced
Shahab
Hey Patrick, how to send email with token where user can sent it back to endpoint ResetPassword ?
thanks, any chances for tutorials on mac with m1's ?
Please create tutorial on uploading single and multiple files. Reading csv file and uploading to database.
Hey yeah @patrick it would be great an api with .Net6, for file upload. or that users can change their image.
Thank you
What is the purpose of passwordSalt ?
very nice tutorial ! can we have tutorial about frontend with this backend some how :)
Thanks! What would you like to see? Angular, React, Blazor, ...? 😀
@@PatrickGod angular if possible thanks you for reply :D
Great thanks❤
mhm do you prefer creating your own authentication service or you mostly use identity on your projects?
Is this something you do in production or just as a pet project? Cause in prod you use Identity Framework for all this stuff. My question would be if this would be something you would do if you are already using entity framework.
Thanks
broooo 😍 thx 😍
Super 😁
Will this work in .NET 8 where a lot of this is set up out of the box?
Hi sir how to extract jwt token in postman Authorization bearer token
patrick god, could you help me, making a video explaining how to save multiple files with inputfile but save them in a local folder and show that local path in the database, it would be very helpful since I've been trying for a long time... with blazor webassembly
Hi! Could you please do a video creating an IdentityServer with openiddict? I'm seeing that Microsoft is dropping support for it and it would be a good idea to learn how to make a working alternative. Thanks 😃
Hello. Thanks for the tutorial. I have it working and have the full Request Url sent with an email. However clicking the link just gives a 405 error and user does not get verified. Any suggestions how to solve this? Thanks
Hi could you do a video of authentication with Auth0 in .net6 and rbac access in your own backend
Your LEDs should not be visible, they should always be reflected / use a cover...
18:19 - the same shit with 17.2.3
SMS OTP please. with razorpage.
imagine ur last name being god
wtf how can people get job when they write logic in controller this is i dont understand
Anyone who knows the email address of the user be able to change the password. Isn't this insecure?
I gave u Thumb up before watching. I hope you dont use this bullshit microsoft identity implementation but your own custom ;) greeetings
Why show them this you should be using Identity framework and not a custom method custom methods so easy to hack
Hello i have a question,
What if i get an exception on my DataContext.cs
Can i handle it on UserController.cs sending back to the user a StatusCode 500 ?
The problem with that is my Cnstructor gets a return value, i dont know if it's the best way to handle this.. wanted to handle exceptions when access to database is compromised.
hello, is it valid to create a hash with DateTime.Now().ToString() instead of Convert.ToHexString(Random....) in the Forgot Password Feature or is there a problem?
You can use:
using hmac = new- hmacsha512();
(Without {...})
The scope will be the scope of the variable🙃🙃🙃
Thank you Patrick!
You're very welcome! 😊
Thank you
You're welcome! 😊