aws-amplify / aws-amplify/docs

Tutorial adds authentication, but does not secure the API

Open
#5,266 0 comments 0 reactions 0 assignees View on GitHub
amplify/data p2 theme:data-auth
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

**Page**: [`/start/getting-started/data-model/q/integration/[integration]`](https://docs.amplify.aws/start/getting-started/data-model/q/integration/react/#connect-frontend-to-api)

**Feedback**:

This tutorial appears to have a rather significant security issue in that the "Add authentication" section of the tutorial gives the false appearance of securing the back-end, but rather only hides portions of the UI from unauthenticated users.

Please add a section called "Securing the API" which goes through the process of configuring the API (adding @auth to schema.graphql?) and passing the tokens to the GraphQL calls in addTodo and fetchTodos.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.