Basic Authentication in API Swagger | Protect API with Basic Authentication in .Net 6.0

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

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

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

    Great video ! You save my time ! 🥰🥰

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

    Gracias

  • @jacksparrow6274
    @jacksparrow6274 2 года назад +1

    Thank u brother I searched so many videos this is the best and perfect one hope u will continue this. Do video on how to upload image to a sql database through web api app. Subscribed bro

    • @aonecode
      @aonecode  2 года назад

      Thanks @Jack for watching. Sure I will make video of these concepts in future.

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

    Great video ! Keep it up mate !

  • @ambitiousneeraj
    @ambitiousneeraj Год назад +3

    You must add details about various classes you are using in your code, before you use them like Request.Header or BasicAuthenticationHandler etc.

  • @VivekSingh-by8lj
    @VivekSingh-by8lj Год назад

    why it's showing Unsupported ' Scheme'

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

      Hi vivek, follow the steps it will work for you as well.

  • @gabrielcuriel4267
    @gabrielcuriel4267 2 года назад +1

    Where are u creating the user and password?

    • @aonecode
      @aonecode  2 года назад +1

      Hey, I am not creating the new user or comparing with new user credentials. If you watched the full video then you saw at one place I am comparing the username and password with default username and password.
      You can achieve this with dynamic user as well just you have to add a logic to get the user from database and compare their username and password.
      In the video I am passing the same username and password from swagger ui which I have taken at the time to compare the credentials.