Skip to content

Support specifying multiple tenants in @TenantFeature #40358

@Eng-Fouad

Description

@Eng-Fouad

Description

Currently, only one tenant can be specified in @TenantFeature. It would be nice to be able to specify multiple tenants instead of only one.

For example, apply custom Jose4j validator on two tenants:

@TenantFeature({"tenant1", "tenant2"})
@ApplicationScoped
public class CustomValidator implements Validator {
    @Override
    public String validate(JwtContext jwtContext) throws MalformedClaimException {
        return null; // TODO
    }
}

Implementation ideas

Change:

String value();

to

String[] value();

and it is backward compatible as @TenantFeature("foo") works with both String value() and String[] value().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions