Skip to content

Make JwtBearerService public and its methods virtual for extensibility #190

@marcominerva

Description

@marcominerva

Feature Request

Please make the JwtBearerService class public. This would allow developers to create multiple wrappers with different configurations, enabling greater flexibility (for example, instantiating it as a KeyService).

Additionally, make all public methods of JwtBearerService virtual so they can be overridden. This will improve extensibility and allow advanced users to customize the authentication logic as needed.

Rationale:

  • Public visibility allows users to instantiate JwtBearerService as needed in various scenarios.
  • Virtual methods facilitate extension and customization without changes to the core package.

Example Use Cases:

  • Creating different services for distinct JWT configurations
  • Overriding default behavior for custom key validation

If this change is acceptable, please outline any potential impacts on the public API and document the new usage pattern.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions