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.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia