You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added my own authentication strategy to feathers and have one problem with that.
I authenticate my user in my strategy and try to get his rights from the database by accessing the service
const rights = await this.app?.service('rights').get(group);
This is working but the service always runs all the hooks from my service and there is a check if the user has the rights to access this service which he does not have at this point so I get an Unauthorized error.
Is there a way to access a service and skipping hooks? I could not find anything about this in the documentation.
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I added my own authentication strategy to feathers and have one problem with that.
I authenticate my user in my strategy and try to get his rights from the database by accessing the service
const rights = await this.app?.service('rights').get(group);
This is working but the service always runs all the hooks from my service and there is a check if the user has the rights to access this service which he does not have at this point so I get an Unauthorized error.
Is there a way to access a service and skipping hooks? I could not find anything about this in the documentation.
Thanks
The text was updated successfully, but these errors were encountered: