Skip to content

Sub-router Authentication Capabilities #708

@fina-joy

Description

@fina-joy

This feature request proposes the implementation of authentication capabilities for sub-routers in the Robyn web framework.

  • While Robyn currently supports middleware for handling authentication at the main router level, there is a growing need for more granular control, specifically at the sub-router level.
  • This would allow different authentication strategies for different sections of an application, enhancing security and flexibility.
    Currently Adding
frontend = SubRouter(__name__, prefix="/frontend")
frontend = SubRouter(__name__, prefix="/frontend",auth_required=True)

Use Case
Sub-router authentication simplifies the process of defining authentication strategies for private routes in a web application with public and private sections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions