Project

General

Profile

Actions

roos-fs tasks #122

open

Create API for the Login (for the application)

Added by Vadim Pariev 11 months ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Farzam Azhar
Start date:
06/12/2025
Due date:
% Done:

0%

Estimated time:
6:00 h

Description

General
We are developing a new mobile application where the users of the mobile app are the same as those using the web version, and the login process should be consistent between both platforms. The mobile app must reuse the current authentication logic and integrate with the existing user database.

To achieve this, we require backend API endpoints to:

  • Authenticate an existing user (login)
  • Return a session token or JWT for use in mobile app requests
  • Optionally: Refresh token endpoint for maintaining sessions

Acceptance Criteria:

  • A POST endpoint is available at /api/v1/auth/login or similar
  • The endpoint accepts email/username and password
  • On successful authentication, it returns a JWT or secure access token
  • On failure, it returns an appropriate HTTP status code and error message (e.g. 401 Unauthorized)
  • Token payload must include essential user data (user_id, role, etc.)
  • The authentication must reuse the existing user database and logic
  • Endpoint must be accessible via HTTPS and CORS enabled for mobile
  • API documentation is provided and stored in https://redmine.matecube-internal.ddns.net/projects/roos-fs/wiki
Actions #1

Updated by Vadim Pariev 11 months ago

  • Description updated (diff)
Actions #2

Updated by Vadim Pariev 11 months ago

  • Assignee set to Alex Katasonov
Actions #3

Updated by Vadim Pariev 11 months ago

  • Estimated time set to 4:00 h
Actions #4

Updated by Alex Katasonov 11 months ago

  • Assignee changed from Alex Katasonov to Farzam Azhar
Actions #5

Updated by Alex Katasonov 11 months ago

  • Status changed from Backlog to Open
Actions #6

Updated by Alex Katasonov 11 months ago

  • Estimated time deleted (4:00 h)
Actions #7

Updated by Alex Katasonov 11 months ago

  • Status changed from Open to Backlog
Actions #8

Updated by Alex Katasonov 11 months ago

  • Status changed from Backlog to Open
Actions #9

Updated by Farzam Azhar 11 months ago

  • Estimated time set to 6:00 h
Actions #10

Updated by Farzam Azhar 11 months ago

  • Status changed from Open to In progress
Actions #11

Updated by Farzam Azhar 11 months ago

  • Status changed from In progress to In review
Actions #12

Updated by Alex Katasonov 11 months ago

  • Description updated (diff)
Actions #13

Updated by Alex Katasonov 11 months ago

  • Status changed from In review to Deployed (QA)
Actions #14

Updated by Alex Katasonov 10 months ago

  • Status changed from Deployed (QA) to Closed
Actions #15

Updated by Albert Katasonov 5 days ago

  • Project changed from 8 to Roos-fs-ZIP
Actions

Also available in: Atom PDF