okta / samples-nodejs-express-4

Express 4 samples. Will publish an artifact that can be consumed by end-to-end sample repos
Other
120 stars 118 forks source link

resource-server Unauthorized #54

Closed nguyendviet closed 5 years ago

nguyendviet commented 5 years ago

I cloned the repo, followed the instruction for resource-server but when I run npm run resource-server and go to localhost:8000/secure or /api/messages I get Unauthorized. I've added the .samples.config.json with the Client ID, following the docs.

npm --version
6.4.1
$ npm run resource-server

> @okta/samples-nodejs-express-4@3.0.0 resource-server <path>/samples-nodejs-express-4
> node resource-server/server.js

Resource Server Ready on port 8000
Unauthorized
Unauthorized
Unauthorized
nguyendviet commented 5 years ago

Need to hook with a front-end app.