-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Authentication with 'local' strategy, does not authenticate username / password #1017
Comments
For now I resolved the issue with below code - look at
|
This should only really happen if you are using the authentication client, called This behaviour will be fixed in the next version as well though. |
Fully agree that this should ideally be handled by frontend - if user is already logged in (valid |
I would not have assumed I had to call the |
This should be handled properly now by the Feathers v4 authentication client. See the Migration guide for more information on how to upgrade. |
Here is the scenario:
accessToken
successfully.In step 3, I logged the
context
object inafter
hook ofauthentication
service forcreate
method.From the logs, it looks like if request is coming with
accessToken
inAuthorization
header then feathersjs does not even look atcontext.data
to re-validate the given username / password.As per my understanding, JWT authentication should only kick in if the
context.data.strategy
isjwt
and notlocal
Another issue can see here is that every time the token is getting refreshed -- look
context.params.headers.Authorization
andcontext.result.accessToken
are different. I think its related to #960Here are the logs:
The text was updated successfully, but these errors were encountered: