Questions tagged [feathers-authentication]
66 questions
1
vote
1 answer
"message": "Invalid login", "code": 401 for @feathersjs/authentication-local in windows while not in linux or mac
When I pulled working code of my project which was working fine in Mac, was giving me this error when authenticating in windows
Error
{
"name": "NotAuthenticated",
"message": "Invalid login",
"code": 401,
"className": "not-authenticated",
"errors":…

Ajay Tom George
- 1,890
- 1
- 14
- 26
1
vote
1 answer
Unhandled rejection at promise with feathersjs oauth call
I'm trying to create a frontend Vue(x) app with feathers-vuex and a backend feathers API using only oauth for authentication.
If I hit the backend directly on localhost:3030/oauth/google then the right flow and re-directs occur with google and I…

darrend
- 825
- 1
- 8
- 17
1
vote
0 answers
FeathersJs: Check if user is item creator or creator of associated item
I have two services: posts and comments. Every post can have multiple comments. User 1 creates a post, user 2 creates a comment inside this post. Both users should be able to update, patch or delete the created comment. How do I correctly qualify…

macroloft
- 105
- 1
- 8
1
vote
4 answers
Optional authentication service
TL;DR The problem is how to get the the user information from a jwt
I'm trying to get the information of a user from the jwt if one is sent on the request but I don't want to close the endpoint to only logged in users.
I don't want to close the…

2JN
- 553
- 6
- 11
1
vote
0 answers
After Feathers authenticate('jwt') user is authenticated but req.user is an empty object
I'm trying to authenticate user with authenticate('jwt') and user is in fact authenticated req.authenticated returns true but the req.user is an empty Object. I'm thinking entity config isn't right since it tries to populate something but doesnt…

CalibratedCabbage
- 29
- 2
1
vote
1 answer
Feathersjs - Multiple authentication endpoints
I have incoming connections from two different clients (angular client and a node.js feathers client) and I wish them to use two different authentication endpoints (based on data in two separate tables). One should authentication against the /users…

robtot
- 863
- 1
- 9
- 31
1
vote
2 answers
Authentication to Featherjs using socket.io-client
How can I authenticate to Feathersjs (https://docs.feathersjs.com/api/client/socketio.html#authentication) using Direct Connection (https://docs.feathersjs.com/api/client/socketio.html#direct-connection)? The following code says that my accessToken…

robtot
- 863
- 1
- 9
- 31
1
vote
1 answer
Hook to check if user is authenticate in Feathers (without send Unauthorized error if not, just check)
I want to implement a simple "published" field for the documents in database.
For example, if an user is not authenticated, I want to always insert { published: true } in the query for all find/get request, so it will return only published documents…

Molosc
- 33
- 4
1
vote
1 answer
FeathersJS authentication using client certificate
I'm trying to create my own authentication strategy that reads the client's PKI certificate within a FeathersJS backend. This is handled in a before hook and based on the documentation hooks are
A hook is transport independent, which means it does…

themanatuf
- 2,880
- 2
- 25
- 39
1
vote
0 answers
Feathers authentication not working
I created authentication for my node project with feathers. I want to do admin's panel based on mongodb. I added new insert to mongo with email and password and for example I added in index file something like this:
app.authenticate({
strategy:…

SeaDog
- 645
- 1
- 9
- 32
1
vote
3 answers
Adding non user field to payload for use in JWT token
Hi I'm looking to add a non user field to the payload in the auth process so I can included in the JWT token.
The request is like this:
{ "scriptId": "script1", "password": "password", "userName": "user1" }
config is like this:
"auth": {
…

nando_023
- 11
- 2
0
votes
0 answers
How do I specify the login_hint in FeatherJS OAuth?
After setting up OAuth in FeathersJS to authenticate with Microsoft, it all works fine. What I can't get working is passing the login_hint through to Microsoft.
When I put it in the config file ("custom_params": {"login_hint":"test@example.com"})…

Pieter
- 2,188
- 20
- 27
0
votes
1 answer
feathers.js V5 How to check if user is loggedin without using authenticate hook
How to check if a user is logged in Feathers,it seems only when using the authenticate hook will user be populated in the context params. is there a way to check on a non-restricted path like in the find hook below.
export const messages = app =>…

ramon22
- 3,528
- 2
- 35
- 48
0
votes
1 answer
protect user fields when returned via sequelize association
I'm having trouble figuring out how to exclude certain fields from the associated model from being returned in a query.
I've got a user-membership setup working, using a "users" model, which is associated to the "groups" model via a many-to-many…

David Robert Hoare
- 13
- 3
0
votes
1 answer
Feathersjs link or unlink existing account (accessToken) oauth login
Is there a way to link or unlink existing account (accessToken) oauth login to feathersjs

Kyaw Zin
- 3
- 3