Skip to content

Allow creating new meals only to authenticated users. #5

@pyiotr

Description

@pyiotr

Retrieving tokens functionality is already implemented.
See luncher.auth module for more details

Using '/auth/token/' you can retrieve a required token.

Acceptance criteria:

  • Application should retrieve 401 unauthorized when authorization header is missing.
  • Create unit and integration tests.
  • You should create decorator @authorization_required to use in controller methods
  • [optional] Token should be valid per only one hour.

In tests I prepared for you how valid request should work.

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