49 - Section Summary

  • 2 days ago
Transcript
00:00All right, guys. So let us do a quick recap of what we did in this section of the course,
00:06and we did quite a bit. We went on quite the journey where we modified our API, we modified
00:12our database include identity tables so that we could handle user login. Just the speed
00:19of the operation, we seeded some users and roles into the system. So we had the default
00:26admin user and a default user user to correspond with the two roles that were added. We also
00:33modified our API to have a login endpoint that would generate what we call an access
00:39token or JSON web token, which would contain enough information about the logged in user
00:46to specify who they are, what they're for in the system, what they can and cannot do.
00:52After we did all of that, we looked at returning that token as a response and then outfitting
00:59our mobile app with login pages. Well, a loading page first that will check if there is a token
01:07and a valid token at that, and then if not, rewrote to the login page. Otherwise, we just
01:15go ahead and navigate to the app and allow the user to do what they need to do in the
01:21app as an authenticated user. Outside of that, we also had to create a login view,
01:28create the form for that, set up the API calls to our login endpoint and handle what happens
01:36when we get back certain data. So all of that has contributed to us creating a login operation
01:45and a logout operation for our mobile app. We're able to protect parts of our endpoint
01:51as well as protect our mobile app from unauthenticated users. So after all of that, the final thing
01:58to do would be to update our source code on GitHub. And while that is being completed,
02:03I'll see you in the next section.
02:15Transcribed by https://otter.ai