Basic Authentication in ASP.NET Web API | ASP.NET Web API
HTML-код
- Опубликовано: 10 сен 2024
- In this video, we will learn about Basic authentication implementation in ASP.NET Web API.
You can find me on
1- / satyarth-rao-5baba016a
2- / satyarthrao
3- / raosatyarth
4- / satyarthprogramminghub
5-github.com/Sat...
great step-by-step explanation. I have doubts about why we have to manually encode the user details using the base64 encoder
Very nice explained 😃
At 33:11, when i encoded admin:password in to this string, YWRtaW46cGFzc3dvcmQK, it is still showing unauthorised and "Login failed". Please help!
Sir your explanation was very good and clearcut.
Thanks for the feedback.
Excellent 👍, 💯
love u brother for great explanations
Well Explained, Thanks
Thanks much for feedback.
🤗Excellent
How to get user details on controller level?
How can we implement POST with this. The above example works only for GET
Thanks for your comment. Can you explain more about what you are trying to achieve?
Can we store these in claims ?
very good explained .
Glad it was helpful!
in generic identity why we are passing only username?
Thanks for commenting. If you carefully look at the login method, We are using both username and password that is hard-coded, you can change that implementation to take the details from the database.
Another place where we are setting the current principal, we can pass the username and roles associated but we have just passed the username as we don't want to give roles at that point of time.
I have explained the same in role based authentication.
Hope this clears your doubt.