Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
User Authentication Missing Credentials error (and subsequent nav authorization) #508
Steps to reproduce
Clone this repo, yarn/npm install, tsc, npm start.
Authentication calls should return an accessToken, and subsequent routing should be authenticated. Should subsequent manual URL navigation work too? (If I make a call on the client to authentication service, and get a token back, should I then be able to manually navigate to
Currently the repo returns a
If I did something wrong let me know I'm fairly certain there's some config I must have messed up. I had the initial authentication working yesterday, but was trying to add cookies so that the server would remember users on refresh/login... and now auth doesn't seem to work at all.
The repo was based off of what feathers CLI gave me, but I've been tinkering with it a lot to add
But, I did get all of those pieces mostly working! If I remove the authorization from the routes
When default.json is set to use 'username' as the usernameField it outputs my Windows username, 'Matt'.
Surprisingly, this is intended behaviour because feathers-configuration checks to see if a value is a part of the OS environment: https://github.com/feathersjs/feathers-configuration/blob/master/src/index.js#L26
Workaround for OP
Change the username field or manually set this configuration in authentication.js, for example: