ASP.NET Core 3 - Identity - Ep.2.1 Email Verification

  Рет қаралды 45,245

Raw Coding

Raw Coding

Күн бұрын

Пікірлер: 123
@WarrenGarabrandt
@WarrenGarabrandt 2 жыл бұрын
I'm learning web development after 20 years of only desktop development. Web development has always been intimidating for me because there is just SO much to learn, and the technology keeps changing constantly. I have tried several times to get into web development, but every time I do, I bail out because I never know where to start. Everything seems to depend on you knowing everything else. I'm making another push, and this time I'm going to ASP.NET core 3.1, and one of the things I was having a hard time understanding was middleware authentication and authorization. Your videos have been extremely helpful to me, and wanted to thank you for all the hard work you put into making them, and organizing the concepts so that they are possible to grasp without needing to figure out 50 other things at the same time.
@RawCoding
@RawCoding 2 жыл бұрын
Thank you, and glad I could help
@ricardothomas3779
@ricardothomas3779 5 жыл бұрын
Yeeaaaaaay : ) : ) : ) Hello Anton. Thank you very much for taking the time to do this video for your audience. We all appreciate the work that you are doing. As I have stated in comment on a previous video, you know how to break down the material in such a way for your audience can understand and then having the confidence to implement it. Along with your passion and drive for Software Design and Development/Computer Science, your are gifted to teach. Keep up the great work man. Thank you very much Anton. Blessings.
@RawCoding
@RawCoding 5 жыл бұрын
Cheers, I'll bring out the video on two factor as well at some point.
@ricardothomas3779
@ricardothomas3779 5 жыл бұрын
@@RawCoding Awesome. We would all appreciate that man. 👍🏾👐
@LinuxUser822
@LinuxUser822 4 жыл бұрын
Just a third video from the list and I'm already sure that I'll learn and understand from it better and quicker than from any other resources. Thank a lot for your effort, I wish you all the best!
@RawCoding
@RawCoding 4 жыл бұрын
Thank you, hope you learn a lot ;)
@drspyqwerty
@drspyqwerty 4 жыл бұрын
Brilliant series. So much Info. Stick with it, absolutely worth it. strongly recommend to watch the whole series
@RawCoding
@RawCoding 4 жыл бұрын
Thanks for the feedback, glad you liked it!
@milosh996
@milosh996 3 жыл бұрын
MailKit! What a great package for sending emails. I'm really learning a lot from this series. Thank you for great content, I'm really excited about other videos in the series.
@RawCoding
@RawCoding 3 жыл бұрын
Glad to hear!
@maryiapuhachova7410
@maryiapuhachova7410 4 жыл бұрын
Before your videos, I didn't know much about it, but you tell it very simply and accessible! Cool! I like your whole video course! Awesome!
@RawCoding
@RawCoding 4 жыл бұрын
Thank you for watching)
@juancarloshb5
@juancarloshb5 4 жыл бұрын
Excelent content! Thanks! Just added email verification to my Api and worked perfect!
@RawCoding
@RawCoding 4 жыл бұрын
Awesome!
@ohurcool07
@ohurcool07 4 жыл бұрын
I pay for pluralsight every month and you have better content than they do. I appreciate all your hard work and easy explanation for everything. Please continue making content and I will continue recommending to everyone I know.
@RawCoding
@RawCoding 4 жыл бұрын
Thank you:)
@johannesstenling9931
@johannesstenling9931 4 жыл бұрын
Thanks for this! Really helped me out when I was doing this for a customer.
@RawCoding
@RawCoding 4 жыл бұрын
Glad I could help
@iudom
@iudom 4 жыл бұрын
Thank you for this videos. Very clearly explained and easy to follow. Much appreciated
@RawCoding
@RawCoding 4 жыл бұрын
Cheers:)
@salarkazazi7584
@salarkazazi7584 3 жыл бұрын
Wow thank you so muchhhhh, u r a 0&1 digital Angel to the rescue.
@RawCoding
@RawCoding 3 жыл бұрын
Lol
@WikkiOnIlluminati
@WikkiOnIlluminati 4 жыл бұрын
Much much appreciated Thank Anton
@RawCoding
@RawCoding 4 жыл бұрын
Thank you for watching
@azizbekibnhamid642
@azizbekibnhamid642 2 жыл бұрын
Amazing course!
@BrothyamHuaman
@BrothyamHuaman 3 жыл бұрын
¡Gracias maestro!
@RawCoding
@RawCoding 3 жыл бұрын
De nada amigo, gracias por mirar el video
@RawCoding
@RawCoding 3 жыл бұрын
o miras, mi espanol no es bien
@xelaksal6690
@xelaksal6690 3 жыл бұрын
Very nice!
@RawCoding
@RawCoding 3 жыл бұрын
Cheers
@ricardothomas3779
@ricardothomas3779 5 жыл бұрын
Guys please support Anton on Patreon, the Discord Channel and via his affiliate link to host your ASP.NET Core Apps.
@RawCoding
@RawCoding 5 жыл бұрын
Would be appreciated!
@kradstar
@kradstar 4 жыл бұрын
Something beautiful :) Thank you for this video :)
@RawCoding
@RawCoding 4 жыл бұрын
Happy you enjoyed it!
@abugsbunny
@abugsbunny 2 жыл бұрын
Nice. thanks for this. greate tutorial.
@fabricciotornero6876
@fabricciotornero6876 4 жыл бұрын
Excelent my friend
@RawCoding
@RawCoding 4 жыл бұрын
Thank you :)
@usevenyears
@usevenyears 4 жыл бұрын
Thanks for the video
@RawCoding
@RawCoding 4 жыл бұрын
Thank you for watching :)
@haribalachander
@haribalachander 3 жыл бұрын
Hey Anton. Great video as always. You did not demonstrate the condition where a user tries to login without confirming the email. Ideally the application should not allow the user to login. But when I followed the steps the application does allow me to login without ConfirmEmailAsync() method call first. In such scenario, How does the application verify if the user is yet to validate their email ? Edit: For those wondering, the solution is to set IdentityOptions.SignIn.RequireConfirmedEmail = true during the AddIdentity() call within the ConfigureServices method of your startup class.
@RawCoding
@RawCoding 3 жыл бұрын
You specify a setting in the startup file when you add identity
@haribalachander
@haribalachander 3 жыл бұрын
@@RawCoding Thanks buddy. I'll look in to that setting.
@haribalachander
@haribalachander 3 жыл бұрын
Found the answer and added it to the original comment.
@RawCoding
@RawCoding 3 жыл бұрын
Thank you
@ZnSstr
@ZnSstr 3 жыл бұрын
Hey man, do you have a good book or resources to learn about Identity, Oauth, OWIN, Roles, Policies, Claims, Cookie auth, JWT. I keep looking after some nice reources to read and see some diagrams, but all tutorials are like "lets open visual studio" and I am rolling eyes. I wanna build a project and while I know how to make some code work I really need to understand the meaning behind those interfaces and why they exists. What were your steps to learning all this? I don't have a workflow in my head about security in general, I feel like putting lego pieces together and call the app secure just because it has Identity and jwt, which is bad especially for an interview.
@RawCoding
@RawCoding 3 жыл бұрын
Read the specifications. Sit down open them up and read from start to finish. Same as programming you’ll be bored, you’ll put it off for a couple of weeks etc.. Just force yourself and in the end you’ll understand what OAuth & OIDC are and how JWT plays in to it.
@ZnSstr
@ZnSstr 3 жыл бұрын
@@RawCoding you hit home with "put if off for a couple of weeks", I feel like most of the documentations are written to scare away people haha.
@RawCoding
@RawCoding 3 жыл бұрын
Don’t want to be mean but someone worked hard to write those docs and it’s a hard thing to get right. I’d say it’s more of a knowledge ingestion format that puts people off - not many people read.
@ZnSstr
@ZnSstr 3 жыл бұрын
@@RawCoding Started to read Security in .NET, I am gonna take everything I need in a notepad and then go check with the boys and girls on stackoverflow about whats not clear, I am sure I am not the first asking the questions I want to know. Then I think I have some of your videos on queue, I can't see the tabs anymore because of Microsoft documentation, I opened like 40 tabs. I just don't like implementing blindly some code, I can make it work, I can understand why that code is needed, but something eats me inside I don't know everything.
@RawCoding
@RawCoding 3 жыл бұрын
Some advice - less tabs is better. And feel free to ask questions on the discord server
@waria_900
@waria_900 Жыл бұрын
I'm facing a problem, im trying to send to my Gmail account but it threw an exception 😢
@giampaolotucci5897
@giampaolotucci5897 4 жыл бұрын
Really nice ! tnx
@RawCoding
@RawCoding 4 жыл бұрын
Ty for watching!
@orhanaliyev9774
@orhanaliyev9774 2 жыл бұрын
how after registering a user, did you pass the condition? If configuration is specified, mail verification. Since with this parameter the result will not be successful. I'm just trying to understand, but either you removed this parameter, or I missed something, or who the hell knows how you passed this condition. The only alternative is ! in the condition. Timing is 14:50
@BenHayat
@BenHayat 4 жыл бұрын
Hey Anton, you did all this email backend part and user interaction using MVC. In my project, I'll only be use Web API, IS4 and Vue client. Do you have a video that shows us how to do all these (email verify or password rest, register, login and etc) using Web Api, Vue and IS4? Or is it coming up in IS4 section? Thanks!
@RawCoding
@RawCoding 4 жыл бұрын
Just put this logic in your identity server
@Uzair_Anwar2299
@Uzair_Anwar2299 3 жыл бұрын
💜💜💜💜💜
@RawCoding
@RawCoding 3 жыл бұрын
))
@ghevisartor6005
@ghevisartor6005 2 жыл бұрын
ok dumb question, is there a reason why you only used nameof(VerifyEmail) in that case, but not for the RedirecToAction("Index") methods? i also found on other projects that nameof is not used in those cases but i cant really understand why...Ok maybe because the method name Index() will never change?
@flauberttagu
@flauberttagu 3 жыл бұрын
Hello Raw Coding, Nice tutorial by the way. I have an error. Can't find a way to move forward. I get the verifyEmail link correctly but when I click to it, it does not pass through the AccountController (Controller previously made). I can reach the page correctly by clicking to the mail. But the email is not confirm at all.
@flauberttagu
@flauberttagu 3 жыл бұрын
Never mind, I just had to put the code inside the page and it works fine. Thank you for this awesome tuto. I will support you as always (end of this month). Hope it will be helpfull 😅 Please, do you have a video on password reset?
@RawCoding
@RawCoding 3 жыл бұрын
Well done, and yes all in these series.
@eddkepner4227
@eddkepner4227 5 жыл бұрын
Just a suggestion, but maybe you want to check if email confirmations are required before generating a token and sending an email. _userManager.Options.SignIn.RequireConfirmedAccount
@RawCoding
@RawCoding 5 жыл бұрын
It's a possibility!
@sweetydhore2390
@sweetydhore2390 2 жыл бұрын
Genius
@RawCoding
@RawCoding 2 жыл бұрын
Ta
@thanzeeljalaldeen
@thanzeeljalaldeen 11 ай бұрын
shouldn't it be POST instead of get when verifying an email?
@ervssevilla4119
@ervssevilla4119 5 жыл бұрын
Nice!
@RawCoding
@RawCoding 5 жыл бұрын
Cheers
@lilasalsyoufi4915
@lilasalsyoufi4915 4 жыл бұрын
Great Videos. I followed all the steps, but whenever I hit the Login button nothing happens. what am I doing wrong?
@RawCoding
@RawCoding 4 жыл бұрын
So umm when you press the button it’ll try to redirect you to a route double check that it’s bound and exists or maybe it’s happening so fast you can’t see it, which is a good thing
@Solmead
@Solmead 4 жыл бұрын
Could you cover 2 factor login as well?
@RawCoding
@RawCoding 4 жыл бұрын
I will once I learn it.
@dkisov1
@dkisov1 4 жыл бұрын
Hello, Anton! I have this exception "no connection could be made because the target machine actively refused it. 127.0.0.1". Can you tell me what can I do about it? P.S. Great video btw!
@RawCoding
@RawCoding 4 жыл бұрын
Have you installed the smtp server?
@dkisov1
@dkisov1 4 жыл бұрын
@@RawCoding No, I haven't... Thank you! :D
@RawCoding
@RawCoding 4 жыл бұрын
No worries
@michavegte7930
@michavegte7930 4 жыл бұрын
Can this also be used for wpf applications?
@RawCoding
@RawCoding 4 жыл бұрын
Yes I have a video in the playlist on how to have a basic setup
@pranavsharma4866
@pranavsharma4866 4 жыл бұрын
Hey I am getting an error at "await _ email service.sendasync" as we go through the process, exception handling, I hope you will help me out with this.
@RawCoding
@RawCoding 4 жыл бұрын
What's the error? Have you tried googling the error?
@pranavsharma4866
@pranavsharma4866 4 жыл бұрын
Raw Coding i tried but i cant find any solution for that its just when u go to register it won’t send you the email, and moreover can we send email to any email to any email provider or to just papercut which I don’t understand
@RawCoding
@RawCoding 4 жыл бұрын
What's the error saying?
@pranavsharma4866
@pranavsharma4866 4 жыл бұрын
Raw Coding I’ll post you a secreenshot in few minutes
@RawCoding
@RawCoding 4 жыл бұрын
@@pranavsharma4866 can you not copy paste it?
@demonbruster926
@demonbruster926 4 жыл бұрын
ServiceNotAuthenticatedException: 5.7.0 Must issue a STARTTLS command first. 191sm9950642pfz.30 - gsmtp MailKit.Net.Smtp.SmtpClient.ProcessMailFromResponse(MimeMessage message, MailboxAddress mailbox, SmtpResponse response) when i try to use gmail smtp sever i got this error
@demonbruster926
@demonbruster926 4 жыл бұрын
if i use smtp port as 465 SmtpProtocolException: The SMTP server has unexpectedly disconnected. MailKit.Net.Smtp.SmtpStream.ReadAheadAsync(bool doAsync, CancellationToken cancellationToken) i got this one
@RawCoding
@RawCoding 4 жыл бұрын
Not sure, haven't worked with the gmail smtp
@rizwinshaikh4521
@rizwinshaikh4521 4 жыл бұрын
Is there any alternative for papercut ? bcz sometimes it doesn't work.
@RawCoding
@RawCoding 4 жыл бұрын
stackoverflow.com/questions/4177990/local-smtp-server-that-can-be-used-for-testing-and-development-wont-actually
@_grzehotnik
@_grzehotnik 4 жыл бұрын
9:28 "Let's actually go DHH"
@RawCoding
@RawCoding 4 жыл бұрын
haha
@mishrajit
@mishrajit 4 жыл бұрын
A Greate Work for the shake of whole (Identity Server4) Community. Ok, so to reset the password, one need to use.. ResetPasswordAsync insted of ConfirmEmailAsync, Like this _userManager.ResetPasswordAsync(user, model.Code, model.Password). But I want to know how do I set time limit to verify the email. In the above case I can even verify after many days. Hope you got my point!
@RawCoding
@RawCoding 4 жыл бұрын
Thank you. Never done this, try this article: www.tech-coder.com/2016/06/how-to-change-aspnet-identity-token.html Don't forget to share your findings :)
@1kidfearless
@1kidfearless 4 жыл бұрын
Look at that, a video that actually covers how to implement the email service rather than telling people to just call their own functions.
@RawCoding
@RawCoding 4 жыл бұрын
That’s what we do here )
@nove1398
@nove1398 2 жыл бұрын
Token always fails no matter how many times i generate the token
@mehmetalibasarr2476
@mehmetalibasarr2476 4 жыл бұрын
I haven't find any single documents that work for ASP.NET FRAMEWORK WEB FORM IDENTİTY... no one is using that thing?
@mehmetalibasarr2476
@mehmetalibasarr2476 4 жыл бұрын
I mean i found some microsoft documents. But they are either dead or dying...
@RawCoding
@RawCoding 4 жыл бұрын
Yea, I don't use web forms
Authentication made easy with ASP.NET Core Identity in .NET 8
10:39
Milan Jovanović
Рет қаралды 89 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
ASP NET Core email confirmation
12:54
kudvenkat
Рет қаралды 61 М.
Liquid Templating in ASP.NET Core | Email Templating Example
20:00
What you should know about Threads in .NET
14:52
Raw Coding
Рет қаралды 8 М.
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 120 М.
Complete login and registration system in ASP.NET MVC application
1:11:08
ASP.NET Core - Roles vs Claims vs Policy
23:11
Raw Coding
Рет қаралды 99 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН