Comments (1)
Hi @carballosa
I am new to json-server-auth module
But I tried about "your query " and locally fixed this with the following
node_modules\json-server-auth\dist\guards.js
added the following line ( need to add userId in queryString )
if (hasRightUserId) {
req.query.userId = req.claims.sub; /* need to add userId in queryString */
next();
} else {
res.status(403).jsonp('Private resource access: entity must have a reference to the owner id');
}
Please let me know if anything...
from json-server-auth.
Related Issues (20)
- How to change user password from client ? HOT 2
- Cannot find module express
- Can't create posts for logged-in users
- npm installation does not work, looking for non existent path HOT 5
- How to logout? HOT 1
- Is there way to make admin account ?
- How Is This Different From jsonwebtoken? HOT 1
- "Incorrect password" HOT 2
- Create a profile resource or returns the user id on login request HOT 4
- How to integrate with custom server.js file HOT 1
- Permission Error??
- Password Reset ?
- Cli command cannot find module 'express' HOT 7
- Is there a way to register user with field other than email?
- How to get list of items that belongs to logged user ?
- Override login response to render additional properties, like permissions
- Permissions not working
- It's will be better
- CLI command cannot find module json-server HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-server-auth.