kevinldg / reuse-app

Upcycling app by @Hendrik-Pils, @jore-averbeck, @kevinldg and @SarahJoyceMorgen ♻️ (Capstone Project)
https://reuse-app.vercel.app
0 stars 2 forks source link

US19 - Auth Protection #31

Open kevinldg opened 7 months ago

kevinldg commented 7 months ago

Value proposition

As a user I want to only have access to my own favorite ideas when i am authenticated In order to make sure, that only i have access to my favorite ideas

and

As a user I want to only be able to create ideas when i am authenticated so that there are no unauthenticated entries

Description

N/A

Acceptance criteria

Not authenticated: Favorites

Create page

Authenticated: Favorites

Create page

Other:

Tasks

Roland-Hufnagel commented 7 months ago

Good userstory and I like the way you describe the different behaviour in the AC. But please decide to write a userstory OR a developerstory. Keep in mind: Writing a userstory that adds a value for the user means lots of money and budget for the develperteam (👍 great) because the customer wants it. Writing a good developerstory is unimportant for the customer. He won't pay money for that! That means you won't get much time or budget for that. You can add some task for protecting the backend.

kevinldg commented 7 months ago

Hey @Roland-Hufnagel , thx for your feedback! We've implemented the suggested changes in the user story.

Roland-Hufnagel commented 7 months ago

That looks good 👍

kevinldg commented 7 months ago

Edit: When an unauthenticated user tries to access a page he's not authorized to, a text "Access denied. You have to be logged in to view this page." will be displayed instead of getting redirected to the landing page.

When an unauthenticated user tries to access a backend route he's not authorized to, an error http code 401 will be returned instead of 403.