Hello Community,
In a project, I need to add a security layer to restrict user requests based on IP addresses. The IP addresses differ between two users and whitelist will by same on user.
My challenge is that I’m unsure where to place my code to check the IP for:
- User login,
- Retrieving and saving data,
- Cloud code.
I can use hooks, but that would mean I’d have to repeat my code for each of the parts mentioned above.
Do you have any advice?
Would using an authentication provider solve my problem?
Thank you very much.
JP