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

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

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

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

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

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

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

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

    Greet video thanks

  • @eyoo369
    @eyoo369 3 месяца назад +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  3 месяца назад

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

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

    Thank you sir 🙏🙏

  • @markwu123
    @markwu123 6 месяцев назад +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  6 месяцев назад

      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.

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

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

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

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

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

      It's now available on aqyanoos.com

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

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

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

      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

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

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

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

      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.

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

    Please how to get myself started please explain

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

      First create a project then follow along with the video.

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

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

  • @SanthoshKumar-y9x
    @SanthoshKumar-y9x 6 месяцев назад +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  6 месяцев назад

      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.

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

    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  7 месяцев назад +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 7 месяцев назад +1

      @@CodingAqyanoos thank you for the beautiful explanation

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

      @@narayandhungel1117 You are welcome ❤

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

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

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

      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 7 месяцев назад +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  7 месяцев назад

      @@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 7 месяцев назад

      @@CodingAqyanoos Thank you

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

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

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

      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 4 месяца назад

      @@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  4 месяца назад

      @@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  4 месяца назад

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

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

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

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

      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.

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

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

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

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

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

    How I can myself started please explain me please

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

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

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

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

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

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

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

    how to connect sql server and how to view sql server

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

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

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

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

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

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

  • @giulio7288
    @giulio7288 Месяц назад

    sourcefile?

    • @CodingAqyanoos
      @CodingAqyanoos  Месяц назад

      @@giulio7288 you can find it on my website aqyanoos.com

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

    Source code plz

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

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

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

      It's now available on Aqyanoos.com