Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Add authentication mechanism #2

@smt116

Description

@smt116

Currently, the access is public which means that credentials are not needed to, for example, delete an existing user with all associated posts.

This ticket covers the following subtasks:

  • add sessions controller that allows login and implements "whoami" functionality
  • allow public access only to "get posts" endpoint
  • allow deleting user only by himself
  • allow updating user only by himself
  • deny creating posts that are associated with other users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions