icefoganalytics / elcc-data-management

Data Management application for Education's Early Learning Child Centre
Apache License 2.0
0 stars 0 forks source link

Switch To Using Secure By Default Authorzation #27

Open klondikemarlen opened 1 year ago

klondikemarlen commented 1 year ago

Context

Currently the app is doing authorization on a per route basis. This is not considered a best practice in the industry as its easy to leave loopholes in security. The solution to this is "secure by default", which means that every route is restricted a the highest level, and exclusion are provided on a case-by-case basis. e.g the /login route has reduced security as the user must access it when unauthenticated.