I have a application containing:
- .net core 3.1
- Scaffolded Identitiy on Microsoft .net core
- ef core 3.x
- vue.js
- net core web api
(important information: everything is in one solution on one server)
And now I am considering securing my Web Apis. This application does not have to be secure as a bank, but I want to implement a little bit more then a minimum of security.
Problem
I want to secure my APIs
What have I done
So I allready have a Authorization with the Identity. And all requests that lets user input data, I am using [Authorize] (with Idenitiy).
My questions
- I have read multiple places that when I have a Rest API I should use JWE-encryption. When I know that only Authorized users are able to send data, do I need JWE too? There is no sensitive information. (But all the places I have seen this, the application keeps track of the username/password)
- I have multiple GET-requests, that dont need any authorization. Should I use JWE there? And what userinformation should I use to encrypt it,when I dont have any information (like username/email) about the user?
- Are there any other ways of securing my Getcalls, so that not "everybody" are able to get/call the information? I have enabled (cors)
The three questions goes into eachother, so by separating them it would be easier to respond to the details I need help with.