Implementing the auth API in the WorldCities app
In this section, we're going to implement the authorization API provided with the AuthSample app to our WorldCities app. Here's what we're going to do in detail:
- Import the front-end authorization APIs from the
AuthSampleapp to theWorldCitiesapp and integrate them into our existing Angular code - Adjust the existing back-end source code to properly implement the authentication features
- Test the login and registration forms from the
WorldCitiesproject
By the end of the section, we should be able to log in with our existing users, as well as create new users, from the WorldCities app.
Importing the front-end authorization APIs
The first thing we need to do in order to import the front-end authorization APIs to our WorldCities Angular app is to copy the whole /ClientApp/src/api-authorization/ folder from the AuthSample app. There are no drawbacks to doing this, so we can just do...