Z
Z
Zakharov Alexander2016-05-17 14:23:18
Java
Zakharov Alexander, 2016-05-17 14:23:18

Is it possible to make user roles configurable from outside the war application?

Hello.
Once again, when configuring the security of a java web application through web.xml\web-app\security-constraint, I ran into the fact that I don’t see a mechanism to set user role names with external settings. If we imagine that the user roles correspond to the group names in the ActiveDirectory domain, then when moving to another domain, these names may already be taken, and then the application will need to be rebuilt with the renamed roles. There is a "security-role-ref" parameter, but it is also "sewn up" in web.xml and, accordingly, gets into app.war.
Is it possible to set security role names from outside the web application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-05-20
@asmailiks

This can be done through the database you are using. Here is the official tutorial there for glassfish, but I think something similar can be done for the server you are using. It is necessary to look the documentation on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question