There ought to be a simple way to configure multi-tenancy for common use cases like by domain, by path, and by header.
Being able to do something like
@Bean
public AuthenticationManagerResolver<HttpServletRequest> byHeader
(Converter<String, AuthenticationManager> lookupByTenant) {
return DefaultAuthenticationManagerResolver.resolveByHeaderValue
("X-Tenant-Id", lookupByTenant);
}
might be nice.
There ought to be a simple way to configure multi-tenancy for common use cases like by domain, by path, and by header.
Being able to do something like
might be nice.