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: Add Auth0\Laravel\Event\Middleware\... event hooks #340

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

evansims
Copy link
Member

Changes

This PR adds the Auth0\Laravel\Event\Middleware\StatefulRequest and Auth0\Laravel\Event\Middleware\StatelessRequest events, which allow host applications to listen for and hook into the SDK's different state management middlewares.

This allows developers to dynamically alter their configuration for their needs at run time.

References

Resolves #336

Testing

Contributor Checklist

@codecov
Copy link

codecov bot commented Dec 13, 2022

Codecov Report

Base: 9.41% // Head: 9.31% // Decreases project coverage by -0.09% ⚠️

Coverage data is based on head (d215177) compared to base (da42413).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##              main    #340      +/-   ##
==========================================
- Coverage     9.41%   9.31%   -0.10%     
- Complexity     222     224       +2     
==========================================
  Files           26      28       +2     
  Lines          595     601       +6     
==========================================
  Hits            56      56              
- Misses         539     545       +6     
Impacted Files Coverage Δ
src/Event/Middleware/StatefulRequest.php 0.00% <0.00%> (ø)
src/Event/Middleware/StatelessRequest.php 0.00% <0.00%> (ø)
src/Http/Middleware/Stateful/Authenticate.php 0.00% <0.00%> (ø)
.../Http/Middleware/Stateful/AuthenticateOptional.php 0.00% <0.00%> (ø)
src/Http/Middleware/Stateless/Authorize.php 0.00% <0.00%> (ø)
...rc/Http/Middleware/Stateless/AuthorizeOptional.php 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@evansims evansims marked this pull request as ready for review December 13, 2022 00:50
@evansims evansims requested a review from a team as a code owner December 13, 2022 00:50
@evansims evansims enabled auto-merge (squash) December 13, 2022 00:50
@evansims evansims disabled auto-merge December 13, 2022 00:52
@evansims evansims merged commit 376a3f6 into main Dec 13, 2022
@evansims evansims deleted the feat/add-state-management-hooks branch December 13, 2022 00:52
@evansims evansims mentioned this pull request Dec 13, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webapp strategy seems to require a user session, even for API endpoints.
1 participant