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

authenticate/authorize custom user models via interfaces in middleware #263

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

sheggi
Copy link
Contributor

@sheggi sheggi commented Feb 28, 2022

Changes

This PR applies the Interfaces introduced in #248 and allows to authenticate/authorize custom User models with the provided middleware.

References

Resolves #256

Testing

When using a custom UserModel from a custom UserRepository the provided middlewares won't throw 403 Unauthenticated because the user instance is tested against the interface.

@sheggi sheggi requested a review from a team as a code owner February 28, 2022 22:36
@sheggi sheggi changed the title decouple user models with interface authenticate/authorize custom user models via interfaces in middleware Feb 28, 2022
@evansims evansims merged commit 557b93b into auth0:main Mar 1, 2022
@evansims
Copy link
Member

evansims commented Mar 1, 2022

Thanks for your contribution @sheggi!

@evansims evansims mentioned this pull request Mar 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
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.

Impossible to configure custom User Repository in 7.0.0-BETA1
2 participants