Тёмный

Token based authentication in ASP.NET Web API | ASP.NET Web API 

Satyarth Programming Hub
Подписаться 5 тыс.
Просмотров 24 тыс.
50% 1

In this video, we will see how can we implement Token based authentication in ASP.NET Web API
Source Code
github.com/Sat...
You can find me on
1- / satyarth-rao-5baba016a
2- / satyarthrao
3- / raosatyarth
4- / satyarthprogramminghub
5-github.com/Sat...

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

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@mayur335
@mayur335 Год назад
Hi, Nice and clean explanation , thanks for your videos. Keep it up Bother
@rahulgaoshinde4044
@rahulgaoshinde4044 2 месяца назад
Hi thanks for the video. In my case token is being sent by caller application to Api so how can I validate token in that case? Thanks
@user-pc4fx6ll3f
@user-pc4fx6ll3f 10 месяцев назад
what a explanation sir, gr8
@SatyarthProgrammingHub
@SatyarthProgrammingHub 10 месяцев назад
Thanks for the feedback.
@amolrathod8519
@amolrathod8519 Год назад
Nice explanation
@ashwinikumar5355
@ashwinikumar5355 2 месяца назад
I was looking for the same thing in the .NET Framework.
@user-cc2bo6ez9t
@user-cc2bo6ez9t 11 месяцев назад
Sir I'm using grant type as client credentials and based on client id and client secret I'm getting token generated. But getting authorization has been denied always
@krupalsojitra8731
@krupalsojitra8731 Год назад
Sir it is not found data of GetSomeEmployees and GetEmployees in postman , error 401 Unauthorized
@manishgarg8371
@manishgarg8371 4 месяца назад
where the Token gets stored?
@Hkumar_new
@Hkumar_new 10 месяцев назад
Hello sir urgent hai ... Ki startup file alag kyu bnai sir , Appstart folder wali class me kyu nhi bnaya sir
@SatyarthProgrammingHub
@SatyarthProgrammingHub 10 месяцев назад
Folders are convention based and have nothing to with the files they contain. They are used to organize the project. You can absolutely put the startup file inside aap_start folder. Hope this helps.
@Hkumar_new
@Hkumar_new 10 месяцев назад
@SatyarthProgrammingHub but if i use another controller call , then endpoint always go through from startup why i want not that .
@sohilsanghavi774
@sohilsanghavi774 10 месяцев назад
Hi, i have implemented the way u explained and it worked. But i want to use already created table(Tbl_Userlist) instead of users. I have tried renaming to tbl_userlist instead of users table. also re-ran migration commands. now i am getting "Invalid_grant". Any help would be appreciated. thanks.
@SatyarthProgrammingHub
@SatyarthProgrammingHub 9 месяцев назад
I guess by mistake you tried to use code first and database first approach at the same time. If you want to use already created tables then use database first approach and generate your models from database. If are okay with new table creation then go for code first approach and run migrations to create your database and tables. If you will try to mix the two you will probably end up with errors. Hope this is helpful.
@sohilsanghavi774
@sohilsanghavi774 9 месяцев назад
@@SatyarthProgrammingHub Yes thanks. it worked. But now i am trying to add record with postman using post method. It throws error as "The requested resource does not support http method 'POST'.". this i am trying to insert new data in json format. Any settings required or am i missing any thing? Any help would be appreciated. thanks
@user-et9rj8gt4h
@user-et9rj8gt4h Год назад
where can i find data to put in database employee table iam not able to find in github
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
Please follow this link to get sample data ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jjLK3wLhV6Y.html
@manivad01
@manivad01 Год назад
It says "error": "invalid_client". I can't see anything about client in this video. I have downloaded your code from github
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
There are two commits in that repository. One is for token generation and other is for token generation with client validation. Make sure you have downloaded the code from the correct commit.
@manivad01
@manivad01 Год назад
@@SatyarthProgrammingHub so when client send back token to us then how can I see that token through my code in debug mode.
@yogi717
@yogi717 Год назад
sir 404 error aa rha hai ,unable to get access token wht to do?
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
Thanks for your comment. Please try to match your code with my implementation which is available on GITHUB and see what is the problem with your implementation. Feel free to reach out if you still got any query.
@yogi717
@yogi717 Год назад
@@SatyarthProgrammingHub thanx
@pankajnaik287
@pankajnaik287 10 месяцев назад
404 not found error ...Till 53:14 it is working but getting error in postman
@SatyarthProgrammingHub
@SatyarthProgrammingHub 9 месяцев назад
Please make sure you are calling the correct action method from the correct controller with the correct http verb.
@vaishnavisonwane3974
@vaishnavisonwane3974 Год назад
Why your github link not open... I want source code
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
You can find all the codes here, github.com/Satyarth-Programming-Hub
@nayyarnayyar100
@nayyarnayyar100 8 месяцев назад
Hi Sir , I am Unbale to find the Migration videos .
@SatyarthProgrammingHub
@SatyarthProgrammingHub 8 месяцев назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FNuJXTzrPsM.htmlsi=MUcIapTziJZHGoAd
@ZariwaTechnologies
@ZariwaTechnologies Год назад
Sir please explain OAUTH 1.0 and 2.0?
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
Sure! Will try to put something together as soon as I could.
@iteeg8843
@iteeg8843 Год назад
Hi, where I can find inserts for Employee table
@SatyarthProgrammingHub
@SatyarthProgrammingHub Год назад
When you run migrations, tables are created in the database on the server based on your connection string. Please look for the details of server and database in your connection string and then login to your database. Inside there you will get the employee table and in that table you will get all the data inserted into that table.
@techwishsolutions
@techwishsolutions 11 месяцев назад
how to access when token is expired?
@SatyarthProgrammingHub
@SatyarthProgrammingHub 11 месяцев назад
To achieve this you need to implement refresh token mechanism wherein you can generate a long lived token(refresh token), based on the client Id, to generate a new access token.