Skip to content

Axum middleware — CurrentUser extractor with JWT validation #2

Closed

Description

@ajianaz

Implement CurrentUser extractor that reads session cookie, validates JWT via rungu_auth::session::validate_jwt, and extracts user_id/email/role. Returns 401 if invalid. Also OptionalCurrentUser variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:authpriority:high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions