Skip to content

Support Custom Authentication in auth.initialize() #21

@schettn

Description

@schettn

Description:

Currently, Pylon's auth.initialize() method is tightly integrated with ZITADEL for authentication, which is effective for OIDC standards but limits flexibility for projects that may require custom authentication methods. It would be beneficial to support Hono Basic Auth, Hono Bearer Auth, and Hono/OIDC Auth to accommodate a wider range of use cases.

Proposed Enhancement:

I propose that we enhance the auth.initialize() method to support custom authentication strategies, specifically:

  • Hono Basic Auth
  • Hono Bearer Auth
  • Hono/OIDC Auth

This enhancement will allow developers to implement their preferred authentication strategies based on their specific requirements.

Benefits:

  • Flexibility: Enables developers to choose the authentication methods that best fit their application's needs.
  • Integration: Facilitates easier integration with existing systems that utilize different authentication mechanisms.
  • Customization: Provides the ability to handle diverse authentication flows required by various applications.

Additional Notes:

This feature could be designed to coexist with the existing ZITADEL integration, allowing developers the option to choose between built-in methods or custom implementations.

Related Documentation:

  • Reference to current authentication setup in the Pylon documentation.
  • Examples of use cases for custom authentication.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions