In this chapter, you learned how to use web authentication to secure routes with protected content in your Vapor web application. To do that, you created a new data model for administrative accounts and added routes and templates to manage the accounts. With this account-management feature, you were able to grant administrative rights to some users or provoke the rights later. Now only a specific group of users will be able to create, edit, or delete a journal entry with their credentials. Then, you worked on the same web authentication framework to secure all the routes under the /journal path. This chapter concludes your myJournal web application. In the next chapter, we will look at how to build more advanced web services.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand