Console App Authentication (.NET C#)

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

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

  • @inomjonismaylov7705
    @inomjonismaylov7705 20 дней назад

    Thank you Anton. Very informative as always

  • @tokyrak
    @tokyrak Год назад +4

    Mind blowing 🤯, thanks for sharing

  • @fieryscorpion
    @fieryscorpion 10 месяцев назад

    This was awesome. Thank you Anton!

  • @ivandrofly
    @ivandrofly 5 месяцев назад

    Takes - change the proj type to Web from there pretty much do the same thing as you would in web project .
    If you don't want change to web proc type , spin a http server from console app - did something similar in window-form app

  • @vladmartian
    @vladmartian 23 дня назад +1

    Hi Anton, Great series. Anyway in Net 8.0 I have a problem. If I don't set an authentication scheme in AddAuthentication the application blows and I get a StackOverflow error. I am kinda stuck there

    • @RawCoding
      @RawCoding  23 дня назад

      Come ask for help on discord and provide your program.cs in there as well!

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

    Thank you 👍

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

    Thank you

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

    Morning!
    Dude u the best. Be my mentor :)

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

    While this is neat and all - why not use the Device Code flow?

    • @RawCoding
      @RawCoding  Год назад +2

      www.secureworks.com/blog/oauths-device-code-flow-abused-in-phishing-attacks

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

      @@RawCoding It's an interesting read, which lead me to a more clear example of how it would be carried out (netskope's article on it). I guess it's a fair point that code flow + PKCE (even on a public client) is safer than device code.

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

      Yep

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

    I don't fully understand why you'd need authentication in a CLI app, besides obviously for calling web endpoints requiring authentication. Why are you creating a web app builder and running a web API inside a CLI app?

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

      It’s a back channel for processing the token.

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

    Very interesting video. Thank you.
    On Windows 'PersistKeysToFileSystem' is required, too. I tried with google and they required 'ClientSecret', but works too. :)