Skip to content

Authentication handler and async ORM support #1296

@acracker

Description

@acracker

Hi,

I’m currently using Robyn with an async ORM, so authentication logic requires async I/O.

From my understanding, authentication_handler supports async def syntactically, but it does not behave like a full async middleware (no response control, no next(), limited async semantics, not propagated to SubRouter).

I wanted to ask:

  1. Is there any plan to extend authentication_handler to better support real async use cases in the future?
  2. For applications using async ORMs or other async dependencies, is the recommended approach to implement authentication via add_middleware() instead of configure_authentication()?

I just want to make sure I’m using Robyn in the intended way for async-heavy applications.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions