Reply To: Multi tenancy configuration Spring Security

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

#26381

Hey,

sorry for the delayed response.

You could basically start with something like this:

.addRule( Join.path( "/{tenant}/{url}" ).to( "/{url}" ).withChaining() )
.where( "url" ).matches( ".*" )

This way the tenant parameter will be converted into a query parameter which you can access using using the HttpServletRequest or via a view parameter.

So basically you get:

/oracle/somedir/somefile.jsf -> /somedir/somefile.jsf?tenant=oracle

However, I’m unsure about Spring Security. You may need to do some tweaking here. But I’m not an expert for Spring Security. Just search the forums. There were some questions regarding Spring Security and AFAIK they were all answered.

Good luck. 🙂