feathers-starter-react-redux-login-roles icon indicating copy to clipboard operation
feathers-starter-react-redux-login-roles copied to clipboard

401 Not authorized?

Open wulabs opened this issue 7 years ago • 3 comments

When I try to access /users I get a 401 not authorized, even after logging in.

I can confirm there is a valid token after being logged in. I do not see any "token" in the header though. Is there some clientside code that I am missing?

wulabs avatar Aug 13 '17 20:08 wulabs

Are you calling with REST? If so, how are you authenticating?

Does the data file have a user in it? If not, try adding one manually.

eddyystop avatar Aug 14 '17 12:08 eddyystop

I've taken the base code and modified it to use mysql with sequelize. Yes, I am logged in as the first admin user. I can access profile page, app, etc but /users and any other additional services I get a 401. Are those urls not supposed to be accessible? If not, how so I expose them to be accessed via the web for an authenticated user?

wulabs avatar Aug 14 '17 16:08 wulabs

Such a problem has not been reported before, and you say you've modified the code. So I'm not sure what to say. I suggest you dig into the problem a bit more.

eddyystop avatar Aug 15 '17 12:08 eddyystop