Reply To: Multi tenancy configuration Spring Security

Splash Forums Rewrite Users Multi tenancy configuration Spring Security Reply To: Multi tenancy configuration Spring Security

#26395

I think in your case it is not a very good idea to use Joins. A Join is basically a combination of an inbound and one outbound rule. So a join like this:

.addRule( Join.path("/home") .to("/faces/home.xhtml") )

Is basically the same as:

.addRule()
.when(Direction.isInbound().and(Path.matches("/home")))
.perform(Forward.to("/faces/home.xhtml"))

.addRule()
.when(Direction.isOutbound().and(Path.matches("/faces/home.xhtml")))
.perform(Substitute.with("/home"))

Using these more fine grained rules, you have more control and I think you will be able to implement your requirement much more easily. You should give it a try. And just ask if you have any trouble.