Load accessibility config for spring from some config file or database
Is there some way, how to make Spring to load the configuration of
accessibility to URLs from some configuration file or database?
Now it looks in like this:
<security:http auto-config="true" access-denied-page="/denied"
servlet-api-provision="false">
<security:intercept-url pattern="/login**"
access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/edit/**"
access="ROLE_EDIT" />
<security:intercept-url pattern="/admin/**"
access="ROLE_ADMIN" />
<security:intercept-url pattern="/**" access="ROLE_USER" />
<security:form-login login-page="/login"
authentication-failure-url="/denied" default-target-url="/" />
<security:logout logout-success-url="/login" />
</security:http>
And I want to let user to create new roles and let him to set to which
URLs user with that role can access, thus I need to save this config to
some file or database and then load those roles from that file/dtb.
No comments:
Post a Comment