SICT

BAA

DPS945

Web Programming - Modern Apps

Denmark info Notes Weekly Resources Graded work Policies Standards Professors & addendum Code examples

 

© 2019 - Seneca School of ICT and Business Academy Aarhus

Add security to a web service

The goal of this task is to add the security components to the DEN app that you created last week.

Follow the guidance in the notes, and use the code provided.

Do the work locally for now (in other words, you do not have to host it somewhere).


More info

One of the tasks is to create a new collection in MongoDB to hold user accounts. We suggest the following schema properties:

Key name Data type Comments
userName string Formatted as an email address
fullName string  
password string Initially an empty string
statusActivated boolean Initially false, but true after an account is created or re-activated
statusLocked boolean Initially false, but true after lock-out action is done
role string A role claim
claims array of strings Initially empty, can be used to accumulate claims


Testing

Use Postman to test your work, by following the guidance suggested in the notes.