on ‎2019 Sep 10 8:46 AM
How to restrict access right by IP address in backoffice?
Is it possible to prevent admin login by IP in backoffice?
SAP Hybris version is 6.6.
I will be grateful for any help you can provide.
Request clarification before answering.
Hi Hyungon,
In a production or pre-production environment, a more sensible approach to take would be to put the backoffice behind an apache server (or potentially other web server) such that it can't be accessed directly. Rules could then be applied on the web server, or at the network layer, so that only certain IP addresses or ranges can access it.
This would mean no custom code is needed, only configuration on other components of the system. Ideally we don't change anything about backoffice for this scenario, so that the other environments such as dev and test, where the IP restrictions might not exist, are consistent with the production environment.
Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi hgkim143 ,
We can add adding a filter or a servlet with in the custom Backoffice extension. I think you can put your custom logic there for checking the admin role or IP address.
You can add this filter or servlet to Backoffice web.xml and Backoffice supports modularity of the web.xml through the web-fragment.xml to fulfill this need.
Summarizing steps below -
Hope it will solve your problem.
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.