Skip to content

Add MultiTenantAuthenticationManagerResolver #6976

Description

@jzheaux

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.

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions