This repository was archived by the owner on Mar 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
No Auth token on authentication resource #488
Comments
Fixed, I had to comment this line: app.service('authentication').hooks({
before: {
create: [
// You can chain multiple strategies
auth.hooks.authenticate(['jwt', 'local']),
],
remove: [
auth.hooks.authenticate('jwt')
]
}
}); I don't understand why this was generated :) |
@waldemarnt that was not a fix. You need to leave that line in place or you basically enable anonymous authentication. We have an open issue to remove the implicit anonymous auth. You've generated a token with no user attached. The real solution would be to make sure you pass a |
@marshallswain thank you, I trying to figure out how those strategies work, I couldn't found on the documentation :( |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
I just generated the JWT authentication strategy via CLI and when I try to authenticate with the following request:
The answer is:
And the debug log says:
This is my actual configuration
Have someone else faced this issue? Seems that the /authentication route is under protection.
The text was updated successfully, but these errors were encountered: