Skip to content

Implement User-based Session Isolation with Authentication and Authorization #13

@mudassaralichouhan

Description

@mudassaralichouhan

Enhance the session management system to support

  • User-based session isolation with authentication and user-specific session management.

Each crawl session should be tied to a specific user and access-controlled based on roles.

Motivation:

  • Ensure session data is isolated per user.
  • Support multiple users safely on the same system.
  • Enable role-based access for administrative and regular users.

Acceptance Criteria:

  • Users can register and log in (JWT-based authentication).
  • Each CrawlSession is linked to a userID.
  • Only the session owner (or admin) can access session data.
  • Role-based access control is enforced (admin, user).

Suggested Tasks:

  1. Add User model and authentication system.
  2. Extend CrawlSession to include userID.
  3. Modify CrawlerManager to enforce user session isolation.
  4. Update API endpoints to validate user permissions.
  5. Write unit and integration tests for user session isolation.

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