Is the authenticate hook needed before authorize? #76
-
I'm currently working on a feature were partial data should be available to unauthenticated users. It seems the main purpose of the Would it be save to leave the @fratzinger Can you help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Moin! Thanks for starting a discussion about that. I don't see a problem with using
This results in two important things in our application:
If you don't need the two points above, you're good to go with using
Hope this helps. Cheers 🍻 |
Beta Was this translation helpful? Give feedback.
Moin!
Thanks for starting a discussion about that.
I don't see a problem with using
context.params.user
. Usingauthenticate
has some advantages. Primarily I use it in one application where this use case perfectly fits into theauthenticate
mechanism. This is how I usefeathers-casl
:This results in two important things in our application:
authenticate
I only fetch the permissions once for the session; I would have to fetch the permissions on every request. But remembercon…