on 2020 Jun 16 7:18 AM
Hi,
I have a custom sap ui5 app in which I have a condition check to test whether the user is authorized or not. I am making a odata call to check the authorization. But the thing is other developer can easily overwrite/change the authorization when he is in debug/developer tools mode(F12). This looks some kind of security threat for me. How to hide the security check code in my controller.js?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi,
never perform authorization checks in the frontend, because, as you have already mentioned, this can easily be bypassed.
Implement any authorization checks in the backend, which the user has no influence on!
Of course you can e.g. hide a create button in the UI if the user has no permission to create the object. In the back-end service, however, this authorization must be checked again before the object is created.
Regards
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.