Complete .NET Core Web API Tutorial with JWT Token | Learn from Scratch
HTML-код
- Опубликовано: 12 янв 2025
- #dotnet7 #webapi #nihiratechiees #dotnetcore
This is .NET 7.0 Web API Full course for beginners & experience it covers below topics
System setup & Installation
Create first .NET Core Web API
Application folder structure
Common Http Response
Middleware & Dependency injection
Entity Framework Core
Auto Mapper
Logging using serilog
Enable CORS
Rate Limiter
Basic crud actions
Authentication
Authentication
1, Basic Authentication
2, JWT Authentication
3, Refresh Token
Image Handling (upload & Download)
Generate PDF & Excel
Send email with attachment
Minimal API
Deployment in IIS Server
Environmental Variable handling
Real time application
GitHub Source code Link
=====================
github.com/nih...
Database script Link
=================
github.com/nih...
PPT Link
=========
github.com/nih...
Download .NET SDK
==================
dotnet.microso...
Join this channel to get access to perks:
/ @nihiratechiees
8:48 Middleware
9:55 Dependency Injection
13:52 EF Core
24:35 Auto Mapper
52:49 Serilog
1:01:04 CORS
1:06:44 Rate Limiting
1:13:30 Authentication
1:33:14 JWT Auth
1:53:36 JWT Refresh Token
2:16:36 Image/File Handling
2:16:36 Minimal API
👌
You are welcome🤝
Can you pls share the data and structure for the data base
where database ?? why u connect database??
Amazing one video with all important topics
Thanks🙏
Thank you very much have learned new things here, well understood
Great
Lovely tutorial it's very simple and useful
Thanks
Great tutorial everything is in it.
Yes
this is a great and complete tutorial that covers the most basic and most used aspects of a web API.
thanks a lot for sharing.
Glad to hear , wonderful words
Just Awesome Sir. Thank you
Great welcome🎉
Excelentes Mister Nihira, emocionado con el tutorial
Thanks
Thanx for the wonderful explanation, Waiting for part 2 and part 3
Great to hear, I will plan very soon
@@NihiraTechieesme as well waiting for the next part.
Nice tutorial! Thank you for sharing
Thanks
Amazing video thank you for sharing all the important topics
Thanks 👍
You are amazing thanks for this wonderful video.. Kudos to your effort
Thanks👍
RUclips Bestest Api Course
Thanks
I can't wait to watch it, thanks, and it will be a huge help to me with my current project!
Hope you watched
@@NihiraTechiees I'm watching now, many thanks. I was just wondering if you could do a video about using web api to combat forgery(Antiforgery) in Angular. :>
where database ?? why u connect database??
github.com/nihira2020/Database/blob/main/Test_DB_Script.sql database script
Thank you Sir, This is an amazing one video with all important topics. :)
Glad you liked it!
Best tutorial
Thanks🙏
Bom dia, parabéns pelo ótimo e completo vídeo e muito obrigado por compartilhar seu conhecimento de forma tão clara e objetiva. Abraço.
Thanks🙏
@@NihiraTechiees uma pergunta, como faço para gravar no banco de dados o retorno que tenho na ApiResponse?
This video is a gem 💎. I'm going to watch it. Thank you
Thanks 👍
Thank you so much for such an amazing course. Learned many new things!
Happy to hear👍 will do more like this in future
where database ?? why u connect database??
Awesome video, you have covered almost all the important topics. Hats off Sir. Could you please create a video on OAuth, SSO?
Sure will plan for that soon
Kudos to the lecturer.... You really tried
Thanks
amazing
Thanks
Good job 👍
Thanks🙏
Nice vid! i need the real-time part sir.
We can provide some content like real time..... Not exactly real time project hope you understand
This is amazing. Please come up with the next part and deploy on Azure.
Thanks. You can expect next part soon 👍
in 16:30 before the entity scaffolding what shud we do in the db i mean in ssms shouldwe just paste the script and execute if yes i did it but im getting errors pls create a support group
Whatever you did it's correct only. If you facing any issues execute the tables script individually
Thanks bro
Welcome
thanks
Welcome🎉
amazing , this course save me in my new position with this stack and i started with this course but i need to access to user by token after login such as create getuserinfo api that get all the information of user by token how to do it ? for example i want to do crud operator for specific user with token , thanks for help
We can extract token... If you added username in token claim section while generating token. We can get same username then we need to fetch more details by username
thansk bro
Welcome
Scaffold-DbContext “Server=DESKTOP-SUT02GD; Database=restdb; Trusted Connection=True;TrustServerCertificate=True;”
cmdlet Scaffold-DbContext at command pipeline position 1
Supply values for the following parameters:
Provider:
asking provider what it is exactly
Microsoft.entityframeworkcore.sqlserver
Great Video.
How do you debug or ("attach to process") ?
Could you do a video to show this?
Cheers
Will cover in upcoming video..... If you have experience in .NET framework applications we can follow the same steps
@@NihiraTechiees - Thanks for your reply. To expand on my original comment.
I have connected to the local w3wp (worker process) debugger. However, it is not stopping on the breakpoint?
AMAZING!
Thanks
Can you pls share the structure for the 2 database tables mentioned: tbl_customer and tbl_user. Cant find it in description. Thanks in advance
Added in description also check the linkgithub.com/nihira2020/Database/blob/main/Test_DB_Script.sql
Very nice tutorial sir, Thank you very much, can you explain between jwt token and bearer token(which is best approach)
Jwt also type of bearer token
Pls upload video with azure basics and .net application deployment in azure
Sure👍
Can you demo follow this video using sql command on asp or using store procedure.
You are expecting ado.net instead of Entity framework. Will create separate video for that
@@NihiraTechiees Dapper pls
Can you make one to copy database tables from one database to another DB using EF code first approach ?
Sure, you have to change the connection string and executive the migration command once again
Hi Sir, Can you please provide one example with docker also
For docker will create separate one
Hi Sir,
Amazing course! 😊
Can you please share the data and structure for the database?
Check description for database script
github.com/nihira2020/Database/blob/main/Test_DB_Script.sql
Hi,
Its very good tutorial to implement JWT token in .NET core Web API.
I wanted to know, in Postman there is Authorization Tab through which also we can pass bearer token, then how should we validate it in our code. Is there any difference between passing token in Header and passing through Authorization tab? If yes then please explain the same and also tell us how to implement the same in our code.
Thanks
No difference because both are hitting same code.
@@NihiraTechiees,
I tried it using Authorization Tab with Bearer token but it always return status as Unauthorised. Do we need to do any changes in our code? Please guide
@@ajaypanse4489 did u solve this?
Hi Sir, Do you have any plan to create video on 'RabbitMQ in Microservice or WebAPIs'?
Yes . but it will take some time bro
@@NihiraTechiees approx. time ?
Will begin 1st week of february..... For January already have some plan
Okay, Thanks for the update 👍
Can you provide lecture with unit of work ?
ruclips.net/video/GixRckYu5RY/видео.html
waiting for this to drop
Drag & Drop content or Drag & drop image upload ?
waiting for video bro
Tuesday will be available
Dude please add exporting pdf And i ❤❤ the course.
Sure bro, will include
Hi Sir When Add Is active condition In AutoMapper is is showing error because bool not accepting && operator how to fix this error
Operator '&&' cannot be applied to operands of type 'bool?' and 'bool'
Look like you have nullable columns so add hasvalue
Hi,
In Minimal API, do we need to write business log in Program.cs or we can write in separate class & just call in Program.cs. Please explain
We can write from program.cs. if something has more logic involved don't go for minimal api
please sir is the part 2 available ?
ruclips.net/video/SIdgC4bqNZ4/видео.html
Sir!! i need next part of this can u give me a link. thanks!
ruclips.net/video/SIdgC4bqNZ4/видео.html
This is one example.. If any specific topic if you are looking let me know
Hearing "OK" at the end of each sentence is really annoying. You didn't enter any command in PM Manager console Window at 16:17/
Yes it's not pasted see in the 16:37 again pasted.... Also thanks for your feedbacks 👍
@@NihiraTechiees Got it, thanks.
Hi sir, can you please Share the repo link as well
Will add repo link by tmrw
Slowly digesting all of this. Are you going to write a Client side to this, so we can login and use the other APIs?
We can use this into other client side apps. Do you want me to consume in the client side app
@@NihiraTechiees Yes please
Yes please make a client side app with login access
where is associatecontroller portion in video
Source code link in description
@@NihiraTechieeswhere is tutorial of remaining code i followed 3.30hrs and 1.17 hrs video where i didn't find
Hi Sir , Can you attach the ppt once again it's showing 404 error while trying to download
Will upload morning
Check Now
Sir, will all the contents in this video work with .Net 6.0 as well?
Yes
Thanks a lot, would be better if you store the password using salt/hash
Yes. Will follow upcoming videos
First 😄
👍
Sir, Can I get this video recording
Check now, once premiere finished record available
why you all use white theme?And why you didn't use snippet for vs for example to create class constructor just write ctor
It's comfortable to me
sir tamil a podunka sir english la niraya youtube la irukku .but tamil a illa sir
Starting tamil ah ta potan bro. I am not getting enough support.
Namma english kuda almost tamil mari ta pasirupan
This course is not for beginners. please dont waste your time coming here
nothing to say
some people are just new to programming and you just pulled out a database just like that without telling us how to install it. I guess i have to stop at 17minutes
Understand your concern. but I clearly mentioned this video about dot net core not database.
I got stopped at 17:40 because I don't have a database so I can't connect like your video
Then install database bro anyway it's needed
Can you pls share the structure for the 2 database tables mentioned: tbl_customer and tbl_user. Cant find it in description. Thanks in advance
github.com/nihira2020/Database/blob/main/Test_DB_Script.sql