Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allowing routes to be filtered and adding basic example #715

Merged
merged 31 commits into from Jun 30, 2023

Conversation

erickzanardo
Copy link
Contributor

Status

READY

Description

This PR adds a complete basic authentication example.

While developing the example, I noticed that it was impossible to make a resource that had authenticated methods, while also having unauthenticated ones, which makes sense thinking in a users resource, where the POST /users, which would be the "register" endpoint, needs to allow unauthenticated calls as an user does not exists yet.

So this PR also bundles a proposal for such feature.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@erickzanardo erickzanardo marked this pull request as ready for review June 22, 2023 13:22
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
alestiago and others added 8 commits June 23, 2023 10:36
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
Co-authored-by: Scarlett Eliza <scarletteliza@gmail.com>
renancaraujo
renancaraujo previously approved these changes Jun 23, 2023
renancaraujo
renancaraujo previously approved these changes Jun 27, 2023
.github/workflows/dart_frog_auth.yaml Outdated Show resolved Hide resolved
.github/workflows/examples_basic_authentication.yaml Outdated Show resolved Hide resolved
examples/basic_authentication/pubspec.yaml Show resolved Hide resolved
alestiago
alestiago previously approved these changes Jun 27, 2023
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
examples/basic_authentication/lib/user_repository.dart Outdated Show resolved Hide resolved
packages/dart_frog_auth/lib/src/dart_frog_auth.dart Outdated Show resolved Hide resolved
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
@erickzanardo erickzanardo dismissed stale reviews from alestiago and renancaraujo via 44940b1 June 30, 2023 12:16
erickzanardo and others added 5 commits June 30, 2023 09:16
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Renan <6718144+renancaraujo@users.noreply.github.com>
Co-authored-by: Jochum van der Ploeg <jochum.vanderploeg@verygood.ventures>
@erickzanardo erickzanardo merged commit d839381 into main Jun 30, 2023
5 checks passed
@erickzanardo erickzanardo deleted the feat/improved-auth-and-example branch June 30, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants