Skip to content

Refactor authentication endpoints #2105

@mssalvatore

Description

@mssalvatore

Refactor

Component(s) to be refactored

  • monkey_island.cc.resources.auth.auth.Authenticate
  • monkey_island.cc.resources.auth.registation.Registration
  • monkey_island.cc.services.AuthenticationService

Tasks

  • Rename endpoints (0d) - @shreyamalviya
    • Rename /api/auth to /api/authenticate
    • Rename resources/auth/auth.py to resources/auth/authenticate.py
    • Rename /api/registration to /api/register
    • Rename resources/auth/registration.py to resources/auth/register.py
  • Remove unneccesary "error" in /api/authenticate response (0d) - @shreyamalviya
  • Add /api/user-registration-status to check whether or not registration is needed (0d) - @shreyamalviya
    • Remove GET /api/registration
  • Add docstrings (0d) - @shreyamalviya
    • AuthenticationService
    • /api/authenticate
    • /api/register

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions