not clear explanation...16:11 , what is IOption ? why we are using?
@balakrishnan-gf9rw2 жыл бұрын
Creating new refreshtoken for first time user:- context.Entry(tblRefreshtoken).State = EntityState.Added; context.SaveChanges();
@NihiraTechiees2 жыл бұрын
👍
@arundeepaktirkey69202 жыл бұрын
@@NihiraTechiees where to write this code? for generating first token.
@janoshollosi9570 Жыл бұрын
@@arundeepaktirkey6920 RefreshTokenGenerator class -> after tblRefreshtoken creation - it is created but not written to database table
@huntspot23462 жыл бұрын
5:54 How the models folder came ? How you created that?
@NihiraTechiees2 жыл бұрын
It's created from scaffolding comment. Watch 5:10 to 5:25
@huntspot23462 жыл бұрын
@@NihiraTechiees i am getting error, scaffolding comment is not running successfully. Scaffold-DbContext "Server=DESKTOP-GRKHDU6; Database=LocalGroup;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer - OutputDir Models
@NihiraTechiees2 жыл бұрын
Did you installed all the packages
@huntspot23462 жыл бұрын
@@NihiraTechiees Yes i installed
@community7757 Жыл бұрын
@@huntspot2346 I've seen a typo error in your code. It's -OutputDir not - OutputDir (space before Output).
@InfinityBoyz_ShanCreations Жыл бұрын
Can you please explain what is that folder that you are copying APIcore files into another folder and in last part of video in IIS server website configuration you select that new folder why and what is actually that folder I just created a new folder in my angular aplication folder and pasted it but I get error while hosting on port 84 as you showed?
@NihiraTechiees Жыл бұрын
If port is already used try other port
@kgoute50992 жыл бұрын
Awesome Tutorial and Thank you sir
@NihiraTechiees2 жыл бұрын
Glad to hear, welcome
@lrl20542 жыл бұрын
Great explanation! Thank you for sharing!
@NihiraTechiees2 жыл бұрын
Thanks for your support
@dilshadazam880 Жыл бұрын
There is no startup.cs file in .net 6. How come you have in this video. please help how do I get startup.cs while creating the project
@NihiraTechiees Жыл бұрын
This video created 2 years back with dot net core 3. From dotnet 6 onwards there is no startup file. So whatever code we written in startup files it's moved to program.cs file please follow my .NET 7 tutorial it's almost same as .NET 6
@AnandRaj-hq4zv6 ай бұрын
Hi sir when I am creating new user and login then it’s not saving refresh in table for new user.
@NihiraTechiees6 ай бұрын
Please debug any error while creating new record
@pathumlakshan9258 Жыл бұрын
My scaffold command is not valid. it gives me an error. how to fix that? Scaffold-DbContext : A positional parameter cannot be found that accepts argument '-'. At line:1 char:1 + Scaffold-DbContext "Server=.\\mssqlserver01; Database=ProductAPI_JWT. ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Scaffold-DbContext], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Scaffold-DbContext this is the error i got
@NihiraTechiees Жыл бұрын
Send me mail with details... Will repond tonight
@Xpressk2 жыл бұрын
Great video. Thanks. I generated a refresh token, however, my old token is still valid, if i pass that to a post request, I am able to get values. Anything explicitly we need to do to manually expire the old tokens?
@NihiraTechiees2 жыл бұрын
What is token expiration time?
@Xpressk2 жыл бұрын
@@NihiraTechiees 10 mins
@WorldEnder Жыл бұрын
@@Xpressk it's probably 10 min + 5 min from the way it expires
@sunilshinde233 Жыл бұрын
thank you for sharing . But i see expiration time is not accurate, i see some time zone issue, how to fix that.
@NihiraTechiees Жыл бұрын
Which time zone you facing problem
@sunilshinde233 Жыл бұрын
I see expiration time was not found correct , i used UTC for token expiration , then worked expiration time accurately.
@pramodanachimath5081 Жыл бұрын
Sir can I get to know how you have inserted values for usercred ,bcz I am getting unauthorized everytime
@NihiraTechiees Жыл бұрын
Do you have database setup?
@jaypatadia37442 жыл бұрын
How to pass dynamic roles in controller for eg you have passed admin role in the controller
@NihiraTechiees2 жыл бұрын
Actually I am passing token only, when I am creating token I included roles in token. Token creating we are checking credentials same we can get roles from database
@satheeswaranj69902 жыл бұрын
Thanks bro.. nice explanation 👌 👍 👏
@NihiraTechiees2 жыл бұрын
Thanks for the feedback
@soundarpandi3628 Жыл бұрын
Great Explanation Anna Thanks
@NihiraTechiees Жыл бұрын
Thanks brother 🤝
@basantkumarmandal36102 жыл бұрын
I have created Usercontroller using controller with action And Entity framework , and it is not working so please give some guidence
@NihiraTechiees2 жыл бұрын
What error is coming
@AniAnil-wf7tx6 ай бұрын
Great Explanation!!! and Need DB scripts
@NihiraTechiees6 ай бұрын
Db script uploaded in GitHub link available in description
@muhdkrd2 жыл бұрын
Hi, Can you create a whole Get, Post, Put, Delete with DataService + Controller with Models Dto & MapToDto All these topics in a single video. Thank you.
@NihiraTechiees2 жыл бұрын
Let me try
@muhdkrd2 жыл бұрын
@@NihiraTechiees I have texted you on google chat. Will you please check?
@hamletmendez Жыл бұрын
Can you tell me the framework version in which the tutorial was made?
@NihiraTechiees Жыл бұрын
This video I used dot net core 3.0
@divyapant37482 жыл бұрын
Hi, can I get the database queries for the tables. And also I guess I don't have the version in which there is any Startup file.
@NihiraTechiees2 жыл бұрын
Dot Net core version 5 & above don't have startup file... Startup file codes also moved to program.cs
@GovindSingh-em1iy2 жыл бұрын
InvalidOperationException: Unable to resolve service for type 'Learn_DbAPI.Models.CustomerContext' while attempting to activate 'Learn_DbAPI.Controllers.CustomerController'.
@NihiraTechiees2 жыл бұрын
Please do register your db context (customer context) in program.cs file
@GovindSingh-em1iy2 жыл бұрын
@@NihiraTechiees Thank you very much Sir. By adding this below code in program.cs, it resolved.... builder.Services.AddDbContext(options => { options.UseSqlServer(builder.Configuration.GetConnectionString("constring")); }); Thanks Again Sir.
@amardzanan82552 жыл бұрын
Amazing videos. Keep it up !
@NihiraTechiees2 жыл бұрын
Thanks🙏
@shakulhameedmaricar85082 жыл бұрын
Thanks a lot. Clear explanation
@NihiraTechiees2 жыл бұрын
Thanks🙏
@jhonnidarshan30942 жыл бұрын
Hey bro ! can you make a front part as well in angular for the authentication?
token post method shown 200 ok but key not generated in body pls solve this bro
@NihiraTechiees2 жыл бұрын
First debug, then cross check with GitHub source. I hope you not returned
@TariqulIslam-k4v Жыл бұрын
Great content ! Can you explain how can i invalidate or revoke the token on against with my signout functionality. Yes i know that JWT has no option to cancel the token but is it possible any way to invalidate the token ?
@NihiraTechiees Жыл бұрын
We can write custom logics like... Always store jwt tolen in database once sign out make sure we need to remove from database. Token validation time also need to check database.... But it's not good practice Since you have requirement like this then we can do
@santoshernandez9663 Жыл бұрын
Hi, where is the part for the registration?
@NihiraTechiees Жыл бұрын
Register I have not created video but added code, please check link in description for source . Register method available in user controller
@muneeswarreddy1129 Жыл бұрын
Sir How we are storing token in database
@NihiraTechiees Жыл бұрын
Refresh token only we are storing in database using entity framework. Jwt token we are just generating and returning
@diligencehumility69712 жыл бұрын
Why are you installing 3.0.1 version of EF Core and EF Core Tools? Instead of the newest version? 6.0
@NihiraTechiees2 жыл бұрын
Latest version is not suitable for .NET Core 3.01
@thaerkilani5804 Жыл бұрын
can u create this with identity server? thank u
@NihiraTechiees Жыл бұрын
Will do in future
@sprajpure2 жыл бұрын
Can you please upload the database schema of this project on github
Hello Sir, Can you please provide the database table queries?
@NihiraTechiees2 жыл бұрын
Send me mail
@meta61142 жыл бұрын
Hai ji Unga code ah github la update pana naila iruku.
@NihiraTechiees2 жыл бұрын
ok
@meta61143 жыл бұрын
Thanks anna sp based sql next video poduga anna
@NihiraTechiees3 жыл бұрын
Sure
@diligencehumility69712 жыл бұрын
Please... the bird on the background, or what it is... driving me nuts. Buy good video otherwise
@NihiraTechiees2 жыл бұрын
Yes it's birds only. Buy good video Otherwise what ?
@iram94652 жыл бұрын
@@NihiraTechiees Buy seems to be a typo for the word 'but'. But good video otherwise. Honestly the cheerful birds are nice but really bothered me to throughout the video. Thank you for the video.
@rakesht70042 жыл бұрын
Could you please provide me the database of this project too
@NihiraTechiees2 жыл бұрын
Send me mail, I will provide on the same
@EREN119972 жыл бұрын
Well explained. Need Db queries.Thanks
@NihiraTechiees2 жыл бұрын
Your email id please
@danishkhan28972 жыл бұрын
Can you please provide SQL Queries
@NihiraTechiees2 жыл бұрын
Please send me request mail
@AyatSoft2 жыл бұрын
Great Video! Can you Share DB Queries..
@NihiraTechiees2 жыл бұрын
please check here github.com/nihira2020/Database/blob/main/Learn_DB_script.sql
@AyatSoft2 жыл бұрын
@@NihiraTechiees Thanks for sharing
@NihiraTechiees2 жыл бұрын
Welcome
@manhlong63352 жыл бұрын
I want to file script database. Do you send me file script database?
@NihiraTechiees2 жыл бұрын
It's available in my github repos. Repo name database & filename is learn_db_script.sql
@manhlong63352 жыл бұрын
@@NihiraTechiees thank you brother
@manhlong63352 жыл бұрын
@@NihiraTechiees i have'nt see file learn_db_script.sql