Тёмный

ASP.NET Core 3 - Authentication - Ep.2 Identity Authentication (UPDATED: READ DESCRIPTION) 

Raw Coding
Подписаться 73 тыс.
Просмотров 133 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 378   
@lessel7517
@lessel7517 4 года назад
The author explains everything so clearly, no other tutorials come close to this. Thank you!
@RawCoding
@RawCoding 4 года назад
Cheers!
@khantanveeralam
@khantanveeralam 5 лет назад
The best code on internet for authentication and authorization
@RawCoding
@RawCoding 5 лет назад
Thank you))
@relativenormality
@relativenormality 4 года назад
high quality instruction. he deconstructs the default implementation and rebuilds it so you can actually understand it. A+
@RawCoding
@RawCoding 4 года назад
Thank you for the quick review :)
@gjorgenson
@gjorgenson 3 года назад
This is the best tutorial. The author is easy to follow and understand. He breaks the process down to just what you need.
@RawCoding
@RawCoding 3 года назад
Thank you
@ashishdeora8522
@ashishdeora8522 3 года назад
You are God send. Amidst the jungle of most complicated documentation of MS, your tutorials are like sunshine.
@RawCoding
@RawCoding 3 года назад
Haha cheers
@TheChodex
@TheChodex 4 года назад
Finally, a tutorial that clearly explains authentication using the identity. Couldn't wrap my head around this topic for a long time!
@RawCoding
@RawCoding 4 года назад
Thank you for watching
@softwarecraftsmanship8076
@softwarecraftsmanship8076 3 года назад
Understanding this complex topic in 30 minutes is an amazing thing. Thank you so much for making it so simple
@RawCoding
@RawCoding 3 года назад
Thank you for watching
@ВиталийБулдаков-ш4э
Thanks! I had to watch authentication video from updated playlist to completely understand first and second videos from this playlist. Authentication is extremely complex topic
@jamesbest3347
@jamesbest3347 4 года назад
Great tutorial. Really strips down all of the extra stuff that you really don't need in order to understand just what is necessary for authentication. So many other tutorials will also include these huge websites and a bunch of other services/app configurations that are confusing to know which ones you need specifically for user authentication/identity - yours is like the most basic version to make it clear as to what you need exactly to get up and running. Thank you!
@RawCoding
@RawCoding 4 года назад
Thank you, glad you liked it!
@manishpandey4621
@manishpandey4621 2 года назад
I am giving 5 stars just for the one line definition of Repository patten you gave!:)
@IvanRandomDude
@IvanRandomDude 4 года назад
You are king. Actually explaining things that many of us have been using out of the box without knowing underlying logic.
@RawCoding
@RawCoding 4 года назад
Haha thanks!
@milosh996
@milosh996 3 года назад
Great video. It's amazing how (relatively) simple this package works and what it provides without the scaffolding.
@RawCoding
@RawCoding 3 года назад
Yup it’s pretty good )
@kashifyounus3795
@kashifyounus3795 4 года назад
I m speachleas the way u describe AspNet Identity. I believe this is most easier understanding about Identity. Stay Blessed. Keep Coding.
@RawCoding
@RawCoding 4 года назад
Thank you :)
@drspyqwerty
@drspyqwerty 4 года назад
Excellent series. Anton covers lots of detail. So much Info. Stick with it, absolutely worth it.
@RawCoding
@RawCoding 4 года назад
Thank you :)
@Rahmanpookkath
@Rahmanpookkath 3 года назад
Highly dedicated and passionate !!! Really Great!!
@RawCoding
@RawCoding 3 года назад
Cheers
@dheerajambippi2283
@dheerajambippi2283 3 года назад
topic was interesting and well explained with simple example. Thank u Raw coding
@RawCoding
@RawCoding 3 года назад
Cheers
@teodorsova394
@teodorsova394 2 года назад
I couldn't have asked for a better tutorial and explanations. Thanks!
@RawCoding
@RawCoding 2 года назад
Cheers
@hosseinbred1061
@hosseinbred1061 4 года назад
Really great course. The teacher is awesome! It's unbelievable that I'm learning Identity for free. Many thanks!
@RawCoding
@RawCoding 4 года назад
No worries:)
@danishshaikh6151
@danishshaikh6151 4 года назад
this is the best videos to learn identity server and Auth anything else is just waist of time, Great job
@RawCoding
@RawCoding 4 года назад
Thanks :)
@felsonexe9061
@felsonexe9061 3 года назад
Your killing it, it is one of the best tutorials
@RawCoding
@RawCoding 3 года назад
Cheers
@sh00termacg
@sh00termacg 4 года назад
Great work my friend, this is really helping me out! Thank you!
@RawCoding
@RawCoding 4 года назад
Thank you for watching
@KempoSensei
@KempoSensei 3 года назад
Dude. I needed this so bad. Thank you!
@RawCoding
@RawCoding 3 года назад
Thank you for watching
@MSSoftwareGuru
@MSSoftwareGuru 2 года назад
Wow! So glad I found this channel. You saved me so many headaches! Thanks for making it.
@RawCoding
@RawCoding 2 года назад
Thank you for watching
@BenHayat
@BenHayat 4 года назад
Anton, you have done a great job with explanations and WHY things are done this way. I'm in the second video and I'm very impressed. You should turn these videos into a complete Udemy course. I'll be watching some of your other courses like the Vue series, as I'll be building a Vue client and I'll be creating an IdentityServer4 for Vue client and Web Api.
@RawCoding
@RawCoding 4 года назад
Cheers, and good luck :)
@a-s733
@a-s733 4 года назад
Perfect resources. Thank you again for that. I would like to see how would be your approach for Logging and Localization as well….
@RawCoding
@RawCoding 4 года назад
Thank you, and good ideas))
@mfsumption
@mfsumption 4 года назад
Wow, really helpful. So glad I found this series. Subscribed.
@RawCoding
@RawCoding 4 года назад
Awesome
@ianjeffery3762
@ianjeffery3762 4 года назад
Thanks for doing these. Actually writting the code in stages, and demonstrating caused me to have that "ah " moment.
@RawCoding
@RawCoding 4 года назад
Glad to hear)
@bibekkhatri
@bibekkhatri 4 года назад
Thankyou Raw Coding for this awesome tutorial❤
@RawCoding
@RawCoding 4 года назад
thank you for watching :)
@bibekkhatri
@bibekkhatri 4 года назад
@@RawCoding welcome
@emyuan8hs
@emyuan8hs 4 года назад
非常感谢您的讲解,对于刚接触.net core 非常有帮助,thank you !
@RawCoding
@RawCoding 4 года назад
Thank you, glad you enjoyed it :)
@KunalMukherjee3701
@KunalMukherjee3701 3 года назад
These videos are gold, keep them coming
@RawCoding
@RawCoding 3 года назад
Thank you
@sahiwalasoftwareconsultant4491
@sahiwalasoftwareconsultant4491 4 года назад
Once again you are awarded for best explanation and coding materials. One request to you can you make two piece video from big video for the above subject so that I can become mastering..
@RawCoding
@RawCoding 4 года назад
Cheers, and what do you mean two piece video?
@sahiwalasoftwareconsultant4491
@sahiwalasoftwareconsultant4491 4 года назад
it is lengthy video
@RawCoding
@RawCoding 4 года назад
@@sahiwalasoftwareconsultant4491 sometimes it has to be.
@sahiwalasoftwareconsultant4491
@sahiwalasoftwareconsultant4491 4 года назад
@@RawCoding ok fine master
@polyglotdev
@polyglotdev 5 лет назад
Amazing explanation
@RawCoding
@RawCoding 5 лет назад
Cheers!
@kostasval6920
@kostasval6920 4 года назад
Great series, and on time for AspNet Core 3.0!
@RawCoding
@RawCoding 4 года назад
Cheers! I'll be making more)
@tisurmaster
@tisurmaster 4 года назад
I like how you include portions of the video where you search for documentation. Many video just go through thing like magic. I always question how they know what classes to use and what to include.
@RawCoding
@RawCoding 4 года назад
Thank you :) glad that was useful, I always had that question my self how do they know? But it’s just reading the docs
@NguyenPhuc-cj7xw
@NguyenPhuc-cj7xw 2 года назад
very clear. Thank you for your information.
@RawCoding
@RawCoding 2 года назад
Cheers
@andreasaa2563
@andreasaa2563 3 года назад
You sir, is a legend. Thank you so much, subbed and liking every video I’m watching.
@RawCoding
@RawCoding 3 года назад
Thank you
@charlliemurphy8381
@charlliemurphy8381 4 года назад
Bro... you out here saving lives
@RawCoding
@RawCoding 4 года назад
lol thanks :D
@gauravbarge
@gauravbarge 4 года назад
Nice work this is really straight forward
@RawCoding
@RawCoding 4 года назад
Cheers
@volodyasenchak1907
@volodyasenchak1907 3 года назад
Man, I love your videos!
@RawCoding
@RawCoding 3 года назад
glad you like it )
@salarkazazi7584
@salarkazazi7584 2 года назад
Thank you so much man, u r one of a kind ! greaaat list !
@RawCoding
@RawCoding 2 года назад
Thank you for watching))
@SpoderSuperhero
@SpoderSuperhero 4 года назад
This is such an excellent video. Thank you very much!
@RawCoding
@RawCoding 4 года назад
Cheers:)
@chenshang920
@chenshang920 4 года назад
Thanks for the video. The entire video is beginner-friendly enough, but what's a bit disappointing is that it seems using the identity framework does require some extent of familiarity with the library which means instinct usually doesn't work.
@RawCoding
@RawCoding 4 года назад
Cheers, this video was meant to be an introduction to the Identity library as what I showed in the 1st episode, Microsoft have built the infrastructure around that for user management.
@ifithrewmyguitaroutt
@ifithrewmyguitaroutt 4 года назад
You are my hero. I've tried so many different tutorials for this (including the one on Microsoft's docs), and they all failed. But your tutorial, sir, result.Succeeded
@RawCoding
@RawCoding 4 года назад
Eyyy glad to hear man!
@ifithrewmyguitaroutt
@ifithrewmyguitaroutt 4 года назад
@@RawCoding Just realized one small issue. It looks like after one day's time, the user I created yesterday is not recognized anymore. Is this a simple configuration issue?
@RawCoding
@RawCoding 4 года назад
@@ifithrewmyguitaroutt are you using the inmemory provider?
@ifithrewmyguitaroutt
@ifithrewmyguitaroutt 4 года назад
@@RawCoding Yes. I've just done some research on it, and apparently because in-memory uses RAM, the data's going to be lost no matter what, right?
@RawCoding
@RawCoding 4 года назад
@@ifithrewmyguitaroutt Yes, it uses the memory allocated to the program as soon it shuts down the memory is released
@davidonyango1687
@davidonyango1687 4 года назад
Well explained. Thanks
@RawCoding
@RawCoding 4 года назад
Cheers
4 года назад
Again nice video. Great job.
@RawCoding
@RawCoding 4 года назад
Woop woot
@SayWhaaaaaaaaaaaaaaaaaaaaaaat
@SayWhaaaaaaaaaaaaaaaaaaaaaaat 3 года назад
THANKS!! VERY SIMPLE EXPLAINED. GREAT VIDEOS! LOVE HOW YOU BUILD FROM 0 NOT TO AKE DEFAULT PROJECT AND SHOW US STUFF :)
@RawCoding
@RawCoding 3 года назад
Thank you for watching:)
@cc-mo3rf
@cc-mo3rf 4 года назад
High quality tutorial.
@RawCoding
@RawCoding 4 года назад
Thanks
@talkathiriify
@talkathiriify 4 года назад
Excellent and very valuable. I really don't know how to thank you the thanks you deserve Hope you all the best.
@RawCoding
@RawCoding 4 года назад
Cheers, you can like the videos, subscribe, provide feedback. If you wish you can support me on patreon link is in the description.
@ihorbond
@ihorbond 3 года назад
Awesome tutorial! MS should hire you to do their videos! Respect for updating the namespace after moving, a lot of people forget to do that. How did you learn all this ? Just by reading the docs and trial and error?
@RawCoding
@RawCoding 3 года назад
Thank you, and yeah pretty much trial and error.
@ihorbond
@ihorbond 3 года назад
@@RawCoding Im implementing this using dapper and repository pattern. Do you think I can get away with just .AddIndentity().AddUserStore() or I need UserManager as well ?
@RawCoding
@RawCoding 3 года назад
I don’t know your use case but if it does what you need you good buddy
@ihorbond
@ihorbond 3 года назад
@@RawCoding ok, spasibo, I think I'll manage ;) from here haha
@RawCoding
@RawCoding 3 года назад
Uda4ki
@paulkoimi9440
@paulkoimi9440 4 года назад
Excellent tutorial
@RawCoding
@RawCoding 4 года назад
Cheers
@VongsiLoryongpao
@VongsiLoryongpao 3 года назад
Great contents and explanation, thanks for sharing
@RawCoding
@RawCoding 3 года назад
Thank you for watching
@prince26902690
@prince26902690 4 года назад
Excellent explanation..
@RawCoding
@RawCoding 4 года назад
Cheers :)
@Voidk7
@Voidk7 4 года назад
I have been watching this course and I really liked how things are explained, I see he is storing new users in memory, wondering how it would be if you needed to store in a Sql Server DB
@RawCoding
@RawCoding 4 года назад
You just change the provider for entity framework
@Voidk7
@Voidk7 4 года назад
@@RawCoding Thank you for answering my question, also, do you have any course recommendations for beginners? I'm trying to create a project with login validation at the moment. Thanks
@RawCoding
@RawCoding 4 года назад
Not really
@sinoidal5683
@sinoidal5683 4 года назад
This is a good video explanation about authentication and authorization without sacaffold . I have a question. Where do you get the documentation about httpContext, claim and others? I was searching in doc.microsoft because is the original documentation but i dont get it at all.
@RawCoding
@RawCoding 4 года назад
Cheers, yeah it’s not really in the docs I mostly searched the web for this info
@EminoMeneko
@EminoMeneko 3 года назад
I did that with VS 2022 Preview. There is no output for Web Server I could find. Looks very handy especially when you don't do post backs that display validation errors. Instead there is actually a dedicated window that pops with the application you run and the messages are there. Very good explanations.
@RawCoding
@RawCoding 3 года назад
Cheers
@seguramx
@seguramx 3 года назад
solid explanation. Why your new file dialog looks so simple? I always get the big "New Item Dialog"
@RawCoding
@RawCoding 3 года назад
It’s an extension
@seguramx
@seguramx 3 года назад
Found it, Mads Kristensen's "Add New File". thanks!
@charubow1
@charubow1 3 года назад
Best tutorial, thanks
@RawCoding
@RawCoding 3 года назад
Cheers )
@Sysshad
@Sysshad 4 года назад
Excellent information, well explained ! Does this differ alot on how you would do it on .NET Core 2.2 ?
@RawCoding
@RawCoding 4 года назад
Thank you, and no it's not much different from 2.* however very different to 1.*
@theylovedior
@theylovedior 4 года назад
Marvelous. Thanks a lot!
@RawCoding
@RawCoding 4 года назад
Thanks for watching
@subanpurushothmakumar1902
@subanpurushothmakumar1902 2 года назад
Cool videos. Thanks. What's the shortcut used for creating new folders and files?
@mukaofssn
@mukaofssn 4 года назад
Hi Anton, wonderful teach. I was practising this code but at 31:34, I am not getting a cookie created upon registration. It seems to only get added after logging in.
@RawCoding
@RawCoding 4 года назад
Mhm maybe you are not signing in?
@mukaofssn
@mukaofssn 4 года назад
Raw Coding thanks, I didn't see sign in being done in the video under registration. This explains it 👍
@IsaacOjeda
@IsaacOjeda 4 года назад
Thank you for this amazing content 💪🏽
@RawCoding
@RawCoding 4 года назад
Cheers!
@muslehhaj4164
@muslehhaj4164 2 года назад
Thanks a lot for this amazing video !! I'm a beginner programmer, & I have task to move an old system to dotnet core 3.1 so i had to use ADO to keep all DB tables as is ... this system has it's own user table, so my question is: how to implement those steps instead of predefined class of "User" that created by Identity , and using the old users existing DB tables?
@RawCoding
@RawCoding 2 года назад
You’ll have to build your own service for signing in, watch the 1st video you basically have to query the database and the create a claims principal
@muslehhaj4164
@muslehhaj4164 2 года назад
@@RawCoding I got it 😍 thx a lot ❤❤❤
@baoshenyi
@baoshenyi 4 года назад
Great video. If the information will be shared between intranet (windows identity, AD groups) and internet web app (registered identity). Do I need build 2 websites? or there is a better structure to combine these 2 together? Thank you!
@RawCoding
@RawCoding 4 года назад
not sure what 2 websites you are talking about, but with AD you should already have your SSO solution for intranet and I don't think you need an identity server
@tal32123
@tal32123 4 года назад
great video, do you have any tips/tutorial for windows active directory authentication? Your videos and instructions are the best!
@RawCoding
@RawCoding 4 года назад
I’ll take a look at doing a tutorial on this topic
@blackwhiteyang9533
@blackwhiteyang9533 4 года назад
thank you ,Sir
@RawCoding
@RawCoding 4 года назад
Thank you for watching
@r0man0v-r0man
@r0man0v-r0man 4 года назад
best movies what i have ever seen! thx!
@RawCoding
@RawCoding 4 года назад
Спасибо)
@anushagoka3364
@anushagoka3364 4 года назад
Good one!
@RawCoding
@RawCoding 4 года назад
Cheers
@anand1490
@anand1490 4 года назад
Hi, all IActionResult are redirecting to Index page... How are you differentiating which is home and secret page?
@RawCoding
@RawCoding 4 года назад
you can change the text on the page.
@Dominik-th1lw
@Dominik-th1lw 2 года назад
Great video! Do you know what hashing algorithm does Identity use? I'm storing users in my database and want to see if I can decrypt short passwords I entered.
@RawCoding
@RawCoding 2 года назад
it uses the data protection api available within dotnet core. docs.microsoft.com/en-us/aspnet/core/security/data-protection/introduction?view=aspnetcore-6.0
@Dominik-th1lw
@Dominik-th1lw 2 года назад
@@RawCoding thanks!
@alsaltisaid2218
@alsaltisaid2218 4 года назад
Very cool explanation .. Thank you
@RawCoding
@RawCoding 4 года назад
Thank you
@bramburn
@bramburn 4 года назад
I like this tutorial, I would like a bit more depth on DBContext and the other methods you're implementing.
@RawCoding
@RawCoding 4 года назад
Yeee I don’t touch them because they relate more to entity framework
@bramburn
@bramburn 4 года назад
@@RawCoding sorry what I meant is sometimes you deep dive into the Interfaces but if you could take a step back and explain how you found out which classes to use.
@RawCoding
@RawCoding 4 года назад
Mmmmm, not sure what you mean now, maybe if you tell me which part you are confused about I can clarify
@WikkiOnIlluminati
@WikkiOnIlluminati 3 года назад
@21:37 you only used "username" to validate the authenticating user but there is no validation made if given "password" is validated too?? Why do not validate password?? I am new to this, and would appreciate if you can refer some more on this. thanks
@RawCoding
@RawCoding 3 года назад
The example here is not a proper way to validate input, it’s a way to sign in and you don’t really need to get the user ether. It’s possible to use the sign in manager to sign in with username and password
@AiEnthusiast999
@AiEnthusiast999 4 года назад
You just saved me some of hours of searching
@RawCoding
@RawCoding 4 года назад
Glad I could help :)
@SpktrumSkills
@SpktrumSkills 4 года назад
Could you make a video tutorial of best short cut and practices for fast coding. Its amaizing your speed.
@RawCoding
@RawCoding 4 года назад
Mhmm typing fast and keybinds are just for show. Most of the time you spend thinking so best upgrade the brain :D Saying that I might make a video on how I type.
@engineer.me.108
@engineer.me.108 3 года назад
Thanx a ton man
@RawCoding
@RawCoding 3 года назад
Thank you for watching
@mitchauhan3280
@mitchauhan3280 3 года назад
I am getting the below exception on going to the login page: AmbiguousMatchException: The request matched multiple endpoints. I tried to review my code but could not resolve this
@RawCoding
@RawCoding 3 года назад
You have 2 controller actions being matched for 1 request. Could you share your controller?
@vishnureddevil07
@vishnureddevil07 3 года назад
Is identity server 4 recommend for production? Or should we prefer any third party identity services like Azure AD B2C, Okata, oAuth,Firebase
@RawCoding
@RawCoding 3 года назад
Depends on your needs
@dexterman6361
@dexterman6361 4 года назад
7:35 I have a question. I looked around for the repository pattern, and from what I understood, it's to ensure testability and separation of concerns. But I also read that EF implements Repository pattern and Unit Of Work pattern. So my plan then was to, depending on if I'm testing or running in production, inject a fake/real db context through the dependency injection (through ENV variables). Is that okay? Is my understanding correct? What do you suggest I do? Any recent references where I can read up on this would be great too, all resources I found are somewhat old, and they seem to still debate the point of IDbContext and/or IAppDbContext. Thanks you!
@RawCoding
@RawCoding 4 года назад
EntityFramework is the ultimate database abstraction “ultimate repository” so you don’t need to hide it behind a repository unless you are planning on replacing it some day
@dexterman6361
@dexterman6361 4 года назад
Thank you for that info! I'm guessing you also mean that the ENV thingy fake/real DB is okay. Replace you mean replace EF with things such as NHibernate/Dapper, right? Hmmm Doesn't seem like that's on the horizon anytime soon. In case I'm asked to do that, for the abstraction, I'd just have a bunch of classes to CRUD on my tables, and use them when I want to CRUD data from the 'business logic', correct?
@ateetagarwal2892
@ateetagarwal2892 Год назад
Thank you for your wonderful contribution. I have one question - 1. Before using ÜseAuthentication() method, when browse to /home/secret then it tries to authorize the user so there it execute the code written in Authenticate method but redirect to index because last line say - return RedirectToAction("Index"). And this makes sense. 2. And after putting ÜseAuthentication() method, when browse to /home/secret then it tries to authorize and navigate the user to /home/secret. But when try to debug the code, no debugger come in Authenticate method and it neither navigate to index page, it should bcoz last line ofAuthenticate method say reditect to index page.
@dexterman6361
@dexterman6361 4 года назад
5:12 haha loved that
@RawCoding
@RawCoding 4 года назад
Cheers :D
@dinand6410
@dinand6410 4 года назад
Nice Education. !!! Thank you.. What tool do you use to make folders and files?
@RawCoding
@RawCoding 4 года назад
Watch my visual studio 2019 setup video :D
@anubhavagrawal9746
@anubhavagrawal9746 4 года назад
Just wanted to know how we can secure our api using Identity Server 4?
@RawCoding
@RawCoding 4 года назад
Watch the playlist
@stefanioan7569
@stefanioan7569 3 года назад
I got this error in Startup.cs: at the app.useAuthorization() - Message=Unable to find the required services. Please add all the required services by calling 'IServiceCollection.AddAuthorization' inside the call to 'ConfigureServices(...)' in the application startup code.
@RawCoding
@RawCoding 3 года назад
Hope that’s not a type - UseAuthorization(). And if you are trying to add authorisation middleware you need the respective services.
@phoenixishere
@phoenixishere 4 года назад
i accedently reached hell but hell. you got a subscriber
@RawCoding
@RawCoding 4 года назад
Thank you))
@andrewshwets1316
@andrewshwets1316 2 года назад
Thank You!
@simonLG1975
@simonLG1975 4 года назад
Thx , it's very helpful for me!
@RawCoding
@RawCoding 4 года назад
Glad you liked it!
@nhsonet
@nhsonet 2 года назад
Please explain the difference between UserClaim and RoleClaim in ASP.NET Core Identity with example.
@RawCoding
@RawCoding 2 года назад
Where did you find those?
@nhsonet
@nhsonet 2 года назад
@@RawCoding When using ASP.NET Core Identity (Role, RoleClaim, User, UserClaim, UserLogin, UserToken and UserRole) table gets created by default. I am curious about this RoleClaim table. Please make a video on the subject.
@RawCoding
@RawCoding 2 года назад
ClaimRole is a composition of claims.
@nhsonet
@nhsonet 2 года назад
@@RawCoding Please elaborate the explanation in a video as there is very little info in available videos
@mazlumorhan
@mazlumorhan 2 года назад
Can't belive that you answer that too much comment :D You don't use a gpt-3 bot right? it would be fun . My problem is even it creates cookies , I can't access secret action, it's still keep redirecting me to login. user creation and sign in works perfect so I don't know what to do right now ...
@RawCoding
@RawCoding 2 года назад
Do you can see cookie in the browser? Check that you have authentication and authorisation middleware
@mazlumorhan
@mazlumorhan 2 года назад
find it the problem was I used authentication after authorization in startup.cs
@rickvdsommen
@rickvdsommen 3 года назад
How do i use this with my own existing sql server with users? so dont use identity and claims etc
@RawCoding
@RawCoding 3 года назад
Watch the 1st episode and build your own UserManager etc
@mayanksrivastava4903
@mayanksrivastava4903 4 года назад
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'IdentityExample.HomeController'. I am getting this error kindly help me to figure it out.
@RawCoding
@RawCoding 4 года назад
Let’s see your startup
@JesperPDk
@JesperPDk 4 года назад
I just want to hear compared to before that I kind of throw myself further over your eg as you have made and are doing. So will I just do it with mongodb? And make use of it the same way? Here I mean if it is possible to just do the same? Nice video! :)
@RawCoding
@RawCoding 4 года назад
What?
@JesperPDk
@JesperPDk 4 года назад
@@RawCoding U not understand?
@RawCoding
@RawCoding 4 года назад
No
@JesperPDk
@JesperPDk 4 года назад
@@RawCoding What I'm trying to explain. it is that I want to do something for my side of the same but it must be built in mongodb in relation to the database. Is it something that is possible?
@RawCoding
@RawCoding 4 года назад
You’lneed to create a mongodb provider yourself
@udhayshankar2260
@udhayshankar2260 3 года назад
ExtendedSocketException: No connection could be made because the target machine actively refused it. 127.0.0.1:25. I am getting this error when I run Identityexample can you help me with this?
@RawCoding
@RawCoding 3 года назад
Sounds like you have nothing running at that port
@dmitrybelov5703
@dmitrybelov5703 4 года назад
for local fields initialization 22:54 I used instrucions from ardalis.com/configure-visual-studio-to-name-private-fields-with-underscore
@RawCoding
@RawCoding 4 года назад
Cheers)) I use Rider these days never bothered to configure
@bennyo
@bennyo 4 года назад
I see you already answered a question whether this would work with a WebApi or not. But my question is - would you consider a tutorial for a web mvc app that connects to an authorized web api? I want to use these principals on an API that can deliver data to an mvc app
@RawCoding
@RawCoding 4 года назад
I answer that question too, later on in the episodes where I teach about oauth and open id
@user-rp9iis1en6h
@user-rp9iis1en6h 3 года назад
How to configure identify server for .net core web apis running in https mode?
@RawCoding
@RawCoding 3 года назад
Just use https urls
@lonevoyager6152
@lonevoyager6152 4 года назад
Yes, Its really useful. Thanks!! +1 Subscriber :)
@RawCoding
@RawCoding 4 года назад
Cheers!
@karthikvyas8629
@karthikvyas8629 4 года назад
Hi, Thanks for the detailed explanation. Is it possible to see the list of registered users?
@RawCoding
@RawCoding 4 года назад
Cheers and yes
@karthikvyas8629
@karthikvyas8629 4 года назад
@@RawCoding Thanks for the response. Could you please help me in finding them?
@RawCoding
@RawCoding 4 года назад
Get the from your DbContext
@karthikvyas8629
@karthikvyas8629 4 года назад
@@RawCoding Thank you.
@abinnouranas5719
@abinnouranas5719 4 года назад
Very good courses you gave us thank you buddy, i have one question ; what happens to that in memory database , is it persisted if the server restarts ? if no then how to persist those tables ? many thanks
@RawCoding
@RawCoding 4 года назад
Cheers, if server restarts it will reset too, you need to change the provider package
@DurgeshKumar-sl7ll
@DurgeshKumar-sl7ll 4 года назад
What's the shortcut you use to create folder and files?
@RawCoding
@RawCoding 4 года назад
Shift + F2, it's the add new file extension
Далее
Implementing JWT Authentication in ASP.NET Core
23:51
Brutally honest advice for new .NET Web Developers
7:19
ASP.NET Identity - User Registration, Login and Log-out
37:16
Do you need IdentityServer?
10:39
Просмотров 28 тыс.
I built 10 web apps... with 10 different languages
14:23
Coding Shorts: ASP.NET Core Middleware Explained
17:36