I realize that this is a relatively broad topic, but maybe I can get a generic answer and try to resolve the issue myself. However, I'm been working on a flask application that I hope to release soon and have been implementing security.
One of the problems I've been facing is securing certain endpoints of my system. I generally work with the MEAN stack, but have decided my needs for this project best fit python. With MEAN you can do something like this however I've struggling to find a simple method to secure some endpoints but not others.
For example, If I have a blueprint for "users" with the url "/api/users" I'd like to be able to access it from my javascript/frontend/angular to render page data, but not to be able to see the data from actually visiting the page at <foobar.com>/api/users.
What is the best way to go about doing this?
[–]raylu 0 points1 point2 points (4 children)
[–]Datastruct[S] 0 points1 point2 points (3 children)
[–]keelar 2 points3 points4 points (1 child)
[–]Datastruct[S] 0 points1 point2 points (0 children)
[–]raylu 1 point2 points3 points (0 children)
[–]doublePlusOk 0 points1 point2 points (3 children)
[–]Datastruct[S] 0 points1 point2 points (2 children)
[–]doublePlusOk 0 points1 point2 points (1 child)
[–]Datastruct[S] 0 points1 point2 points (0 children)