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...

Комментарии • 18

  • @ssritesh
    @ssritesh 2 месяца назад

    great step-by-step explanation. I have doubts about why we have to manually encode the user details using the base64 encoder

  • @sweetysharma2621
    @sweetysharma2621 7 месяцев назад +1

    Very nice explained 😃

  • @ShubhamKumar-yf3zm
    @ShubhamKumar-yf3zm Месяц назад

    At 33:11, when i encoded admin:password in to this string, YWRtaW46cGFzc3dvcmQK, it is still showing unauthorised and "Login failed". Please help!

  • @saikumarjuturu7068
    @saikumarjuturu7068 Год назад +1

    Sir your explanation was very good and clearcut.

  • @socialworker7519
    @socialworker7519 7 месяцев назад +1

    Excellent 👍, 💯

  • @sabbirhossain2132
    @sabbirhossain2132 8 месяцев назад

    love u brother for great explanations

  • @balajeecomputek9041
    @balajeecomputek9041 Год назад +1

    Well Explained, Thanks

  • @wajidsofteng6263
    @wajidsofteng6263 6 месяцев назад

    🤗Excellent

  • @vipinsingh-ji8dj
    @vipinsingh-ji8dj 5 месяцев назад

    How to get user details on controller level?

  • @BipinDhingra
    @BipinDhingra Год назад

    How can we implement POST with this. The above example works only for GET

    • @SatyarthProgrammingHub
      @SatyarthProgrammingHub  Год назад

      Thanks for your comment. Can you explain more about what you are trying to achieve?

  • @srikanthreddy9547
    @srikanthreddy9547 Год назад

    Can we store these in claims ?

  • @nileshmore1820
    @nileshmore1820 Год назад

    very good explained .

  • @patnafamily
    @patnafamily Год назад

    in generic identity why we are passing only username?

    • @SatyarthProgrammingHub
      @SatyarthProgrammingHub  11 месяцев назад

      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.