Authentication Part 1 - Individual User Accounts

Поділитися
Вставка
  • Опубліковано 22 чер 2023
  • RESTful web services need securing just as much as any other web site. Here's a first look at how we can use JSON Web Tokens (JWTs) to secure ASP.NET Web API applications.
    Source code available at: github.com/JasperKent/WebApi-...
    Topics include:
    - Deriving custom C# user classes from IdentityUser
    - Adding security tables to an existing database with EF migrations
    - Registering new users via the API
    - Configuring your site for JWTs
    - Using a secret to encrypt
    - Returning a JWT from a successful login
    - Analysing a JWT
  • Наука та технологія

КОМЕНТАРІ • 20

  • @CodingTutorialsAreGo
    @CodingTutorialsAreGo  11 місяців тому +2

    Do you use JWTs or another authentication mechanism? Let me know in the comments.
    Source code available at: github.com/JasperKent/WebApi-Authentication
    Remember to subscribe at ua-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
    And if you liked the video, click the 👍.

    • @Lashib
      @Lashib 5 місяців тому

      I build my first Blazor application by following your videos. Very thankful for that. I used AuthenticationStateProvider. But I am waiting for a tutorial on it from you.

    • @sadafziya5636
      @sadafziya5636 26 днів тому

      I have a problem , my project is db first , so if I add identityDbContext to my context or entity when I update from database , all things I did before revert . so its fatal
      what's your idea or any suggestion ?
      or I have to use another way? or not to use identity?
      thanks

  • @ayb2337
    @ayb2337 6 місяців тому +1

    Hello sir i am a complete beginner. I have been trying to understand how to add authentication to my blazorwasm app and I couldn't figure out where should I even start. You are the only one who explain properly even a beginner can understands. Thank you very much.

  • @10Totti
    @10Totti 11 місяців тому +4

    I missed your videos, welcome back :)

  • @GambitVil
    @GambitVil 11 місяців тому +1

    It's great video with all needed steps for authentication from the beginning till the end! Thanks!

  • @sepocon
    @sepocon 3 місяці тому +1

    Hi Jasper, I used Microsoft Entra/Azure to secure an API project and it caused me endless problems. I couldn't add users that were part of another Microsoft org unless their org allowed it, I couldn't allow users to register for themselves, certificates expire without notice, etc, etc. What ended up happening is I got frustrated and started making changes everywhere until it all worked close to how I needed it to work. At that stage I had no idea how secure my application was and it still wasn't working as I needed. I have decided to code my own security so at least I understand it, I know how it works, and I can be responsible for it. These tutorials have been invaluable - thank you.

  • @sauravbhatta5303
    @sauravbhatta5303 11 місяців тому +4

    Please Also add refresh token functionality and Api key as well as role based authentication

  • @legion4929
    @legion4929 11 місяців тому +1

    thanks for the video i have been waiting for this series for a long time i hope you cover openid connect as well

  • @user-pq5cb9ht9u
    @user-pq5cb9ht9u 8 місяців тому +1

    thanks alot

  • @10Totti
    @10Totti 11 місяців тому

    Additionally, when it comes to Clockswek, many people who are unfamiliar with how it works may encounter unexpected errors.
    Thanks!

  • @10Totti
    @10Totti 11 місяців тому +1

    If I'm not mistaken, with the Result or TypeResult type, there is no longer a need for the "produces" directive.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  11 місяців тому +2

      You won't need it for the OK, but you will for anything else.

  • @aliensoul7600
    @aliensoul7600 11 місяців тому

    thank you sir

  • @sauravbhatta5303
    @sauravbhatta5303 11 місяців тому +1

    Missed you sir! Don’t do this again :)

  • @vladmaiorov1072
    @vladmaiorov1072 25 днів тому

    What if I use no secret?

  • @laptoprecaia.k.aagentsmith3328
    @laptoprecaia.k.aagentsmith3328 11 місяців тому +1

    thanks a lot