Login & Registration using .Net Authentication with Custom Identity. React and Web API Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • You'll learn how to add login and registration pages or sign-in and sign-out feature on your website using React and Web API. Authentication and authorization in web development using .NET Identity. We will customize the .NET Identity library based on our use case and our need. I teach you everything with best practices and lots of tips. Like and Share the video to help others.
    Some related courses:
    Integrate React.js in ASP .NET Core Web API with SQL Database:
    • React js with .Net Cor...
    React.js and ASP .NET Core Web API project with MongoDB Database:
    • React and MongoDB with...
    ASP .NET Core MVC tutorial for beginners:
    • ASP .Net Core Tutorial...
    Build multi language website in ASP .NET Core MVC:
    • Create Multi Language ...
    TAGS:
    #programming #react #webapi project website course tutorial
    React.js ASP .NET Core Web API Identity Core Authentication Authorization Web Software app development project Learn coding programming full course tutorial for beginners Entity framework SQL Server Database build create make website Front-end Backend User Login Registration Page Secure Security Protected Routes Sign in Sign out form Sign up token and cookie based authentication visual studio code website project custom Identity
    react js tutorial
    react js full course
    login and registration or sign and sign up in react js and web api
    authentication and authorization
    .net core web api tutorial
    .net identity core tutorial
    asp net core web api
    sign in and sign up project
    web development project for beginners
    how to add login and registration to your website
    how to add sign in and sign up to your website
    secure your website
    protect your website
    react protected routes,
    web development, make , create , build free website or app - web app design and development for free

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

  • @CodingAqyanoos
    @CodingAqyanoos  6 месяцев назад +2

    How to Upload Files to Server using React and ASP .Net Core Web API? Watch here 👇 ruclips.net/video/8d8GvhjltEs/видео.html

  • @hoangheo2505
    @hoangheo2505 2 месяца назад +1

    Greet video thanks

  • @kaveeshewaduge7159
    @kaveeshewaduge7159 26 дней назад

    Why doesn't create database like this video? I can't solve this help me

    • @CodingAqyanoos
      @CodingAqyanoos  26 дней назад

      @@kaveeshewaduge7159 like which video? What is the problem? Normally it's the easiest way to create a database.

  • @bhanukadayananda4510
    @bhanukadayananda4510 18 дней назад

    this video only have admin role login, can have role based login

    • @CodingAqyanoos
      @CodingAqyanoos  18 дней назад

      @@bhanukadayananda4510 actually it's very simple to do. By default everyone should be a regular user and then change the role for admins and managers,...

  • @eyoo369
    @eyoo369 2 месяца назад +1

    Cool tutorial. Why didn't you use the new API endpoints from MapIdentityApi instead of creating your controllers?
    Would be easier no?

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

      Thanks for your comment ❤️ the point was to create custom identity, just in case someone wants to do differently or add other stuff to it. In fact you don't need any extra API controller or endpoint when you use .Net identity because it comes with the necessary endpoints (as you know).

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

    How I can myself started please explain me please

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

      What exactly is the problem? If you watch the video from the beginning then all you need to do is, to follow the video.

  • @markwu123
    @markwu123 4 месяца назад +1

    Hello my bro may I ask a question?
    When I deploy to iis should I need to change proxy to target or just keep localhost :7239

    • @CodingAqyanoos
      @CodingAqyanoos  4 месяца назад

      Hello bro,
      Yes why not.
      You can change or keep it that way, it doesn't matter. You configure The local server in the application for example in visual studio. In iis you just need to link the coming http request to your local server or the running active web server. I hope that it's clear.

  • @SanthoshKumar-y9x
    @SanthoshKumar-y9x 5 месяцев назад +1

    hi bro i already have data so i dont want to migrate so how to write code in backend pls help bro

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

      Hi bro,
      Without migration you will get errors.
      What kind of data do you have?
      Explain more in details so that I can give you a better solution.
      The database tables must match the models.

  • @_MoshikoAz_
    @_MoshikoAz_ 4 месяца назад +1

    thanks for the video, can we have source code please ?

    • @CodingAqyanoos
      @CodingAqyanoos  4 месяца назад

      You are welcome.
      The source code is under the source code on the website aqyanoos.com you can navigate via the footer of the website and also via the menu if you are using mobile device with small screen.

  • @nic00la1
    @nic00la1 4 месяца назад +1

    Thank you so much!! 💖💖 Your tutorial is very helpful 💪

  • @dancristian3673
    @dancristian3673 6 месяцев назад +1

    why there`s no souce code demo for this video ? do you have the direct download link?

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

      It will come. Keep an eye on my website because I share the source code links on my website aqyanoos.com

    • @CodingAqyanoos
      @CodingAqyanoos  6 месяцев назад +1

      It's now available on aqyanoos.com

  • @DanglesSangri
    @DanglesSangri 2 месяца назад +1

    Please how to get myself started please explain

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

      First create a project then follow along with the video.

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

      Why can't you start? What holds you can't get started?

  • @induja6767
    @induja6767 4 месяца назад +1

    Thank you sir 🙏🙏

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

    how do i return the bearer token and get the authorization going with token instead of cookies

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

      You can use jwt solutions for token based authentication. What is wrong with cookie based authentication? It's the most secure way to protect your website.

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

    how to solve this error even though i copied from github
    TypeError: data.errors.forEach is not a function
    at registerHandle

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

      You can log the data object to see if there is "errors" array or not. If it's null then you get that error. Check your object that you send from the visual studio

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

    i want to create a website have a login /regester/and crud to add new users or delete them means i connect first as ana admin and add users to the site with name age ... and the email and password i create for them they can login with it after means if i login as an admin i can create the rest of the normal users
    can you do an example of that website or give me links for videos in your channel helps me

    • @CodingAqyanoos
      @CodingAqyanoos  6 месяцев назад +2

      It's very simple: add roles for the users. Create admin page that only users with admin roles can see and can access and admin can add, update delete...data from the database. Normal users can only see their data but can't modify them.
      I have on this channel three other videos about crud operation in ASP .NET Core Web API and React with SQL database, the same course but with MongoDB database and another one is ASP .Net Core MVC with SQL database. All three courses are full stack crud projects.
      The only challenging thing for you might be to add roles and check the role of the user that is logged in. It's just if else statement. If the role is admin then display the admin page otherwise don't.

    • @narayandhungel1117
      @narayandhungel1117 5 месяцев назад +1

      @@CodingAqyanoos thank you for the beautiful explanation

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

      @@narayandhungel1117 You are welcome ❤

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

    May I know why you are using Visual Studio code for react coding even if the project is created in Visual Studio

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

      It's just a habit. For all JavaScript and typescript projects I like to use VS Code. Besides its user interface is simple, clear and it is lighter than VS.

    • @vijai851
      @vijai851 5 месяцев назад +1

      Thank you.I am a .net developer and I like to use Visual Studio instead of VS code for React, hope that will be ok?

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

      @@vijai851 You are welcome. Visual Studio is a great powerful IDE. It's great that you are more comfortable with VS than VS Code. Everyone should use the code editor that is comfortable and simple to use. Enjoy coding!

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

      @@CodingAqyanoos Thank you

  • @SanthoshKumar-y9x
    @SanthoshKumar-y9x 5 месяцев назад

    how to connect sql server and how to view sql server

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

      I have two other full courses. There you learn all the CRUD operations with SQL server database, entity framework.

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

      The first one is ASP .NET Core MVC full stack CRUD: ruclips.net/video/b7HCZJlchas/видео.html

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

      The Second one is REACT.JS with WEB API and SQL server database: ruclips.net/video/EJgzPBO2juM/видео.html

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

    Source code plz

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

      I will share the source code on GitHub. Then I will share the link on my website aqyanoos.com

    • @CodingAqyanoos
      @CodingAqyanoos  6 месяцев назад +1

      It's now available on Aqyanoos.com

  • @light-water
    @light-water 2 месяца назад

    You should post the code to a Github repository my friend.

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

      I think the source code is on GitHub. The link to the source code is on my website. If you want you can check it there. aqyanoos.com

    • @light-water
      @light-water 2 месяца назад

      @@CodingAqyanoos Okay great. Also, is there a way to contact you? I can get the register and login functionality working, but I continue to get a 404 error where database information is not being shown once logged in. Also , users cannot log out.

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

      @@light-water probably it's because of the proxy. Check the proxy and then put a break point in your controller in VS to see whether it hits the break point or not. If it doesn't reach the break point then the problem is with the proxy or the end point url in your js fetch api.

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

      @@light-water yes there is also a contact form on my website.