Basic Authentication in DOT NET Core Web API using VS Code | .NET CORE 6.0 Tutorial
HTML-код
- Опубликовано: 10 сен 2024
- #dotnetcore #webapi #basicauthentication #vscode #nihiratechiees
This video explains how to implement Basic Authentication in DOT NET Core Web API using VS Code
Steps followed
============
1, Enable Authentication adding “useAuthentication”
2, Create Authentication handler
3, Implement AuthenticationSchemeoptions
4, Get Authorization Header using Authorizationheadervalue
5, Based on the data validate against database
6, If data is valid create authentication ticket
7, Return the response with ticket
Link for Web API using VS Code
==========================
• .NET Core 6.0 Web API ...
Link for Base 64 Encode
=====================
www.base64enco...
Source Code GitHub Link
=====================
github.com/nih...
Very very clear explanation
Glad you liked it
oh good. thank you so much for regular upload. pls keep continue it
Will try my level best
@@NihiraTechiees thank you 🙏🏻
Thank you Sir! I learned alot!
It's pleasure for me 👍
It worked for me. I was using storage as list. Still worked.
Great👍
Hi sir, I am getting exception while posting data from postman. error is "The format of value '' is invalid"
Can you send me the data used in postman
good one, thanks
Thanks
Thank you.
Welcome🎉
Very clear explanation 👌
Thanks
Thanks! Very well explained :)
Welcome 👍
Very good explanation.
But I'm facing one problem. Everytime I add [Authorize] and send a request from Postman, it throws a 404 error. Works fine without the authorisation.
Looks like You have issue with your authorize implementation
In this u used encoding in one line but iam getting error there
Can you share the error
@@NihiraTechiees now it got resolved as we need to add one using statement in the code
@@NihiraTechiees thank you for replying
@@saipavan3915 you can cross check with source code, I provided github link in description
WOW! Thx
Welcome🎉
how to use the "claims" thing in the REST API Controller later?
Check next videos in the same playlist jwt authentication it will cover everything
Thank you for the video. Can pls explain to get 401 message in the postman response
Thanks. Sure👍
Why there is no startup class. usually we do all our settings in Startup class.
Upto. Net core version 3.1 we have startup.cs. after that start up file changes moved to program.cs
@@NihiraTechiees okay, Thanks for the update.
This video is good and helping lot, but where you are giving username and password in the code?
Username and password storied in sql server(database)
Ok thank you
Sir you are giving username and password in postman ,so cant I give username and password in swagger
If I give username pass in swagger I am getting un authorised
So can I get solution for this?
Can you show how to connect to the database? :)
Follow this tutorial ruclips.net/p/PLfyWdpsiUiPDcTp8SucoyN4nX1JW_Hgcm
Here the first video explains the database connectivity
In item.userId what is userId
userId is column name
Can you give me the data base file
Your email id?
Any tip for azure key vault to save and check password
Will cover future videos