icipe-official / icipe-official/vectoratlas-software-code

Add auth workflow to the backend

Open
#57 1 comment 0 reactions 1 assignee View on GitHub

@andykitch is already working on this.

Since Aug 19, 2022.

3 sprint 1
Dominant language
TypeScript
Stars
2
Forks
8
Avg merge
5d 4h
Merged PRs (30d)
11

Description

Some of the API endpoints will need to be secured against access by non-authenticated users. The UI will be using Auth0 for login, so the backend will use the auth0 passport library to handle token validation, as covered in https://auth0.com/blog/developing-a-secure-api-with-nestjs-adding-authorization/#Create-an-Authorization-Module.

Acceptance Criteria:

  • A new endpoint exists on the backend at /auth, which returns true if the requests includes a valid bearer token, and false otherwise

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.