AuthorizationError: missing client_id parameter ?
I had problems with curl so I tried step by step with httpie without success.
http --session=default http://localhost:3000/login [email protected] password=123
The logins give me the session but when I try to authorize with
http --session=default GET http://localhost:3000/authorize/ client_id=52f4c9cff10dc5e749cd44cc response_type=code redirect_uri=http://localhost:3000
I have this problem:
AuthorizationError: missing client_id parameter at Object.request [as handle] (/Users/santi/projectes/oauth2orize-example/node_modules/oauth2orize/lib/grant/code.js:89:28) at pass (/Users/santi/projectes/oauth2orize-example/node_modules/oauth2orize/lib/server.js:269:25) at Server._parse (/Users/santi/projectes/oauth2orize-example/node_modules/oauth2orize/lib/server.js:285:5) at authorization (/Users/santi/projectes/oauth2orize-example/node_modules/oauth2orize/lib/middleware/authorization.js:118:12) at callbacks (/Users/santi/projectes/oauth2orize-example/node_modules/express/lib/router/index.js:161:37) at /Users/santi/projectes/oauth2orize-example/oauth2.js:15:7 at callbacks (/Users/santi/projectes/oauth2orize-example/node_modules/express/lib/router/index.js:161:37) at param (/Users/santi/projectes/oauth2orize-example/node_modules/express/lib/router/index.js:135:11) at pass (/Users/santi/projectes/oauth2orize-example/node_modules/express/lib/router/index.js:142:5) at Router._dispatch (/Users/santi/projectes/oauth2orize-example/node_modules/express/lib/router/index.js:170:5)
You need to use the _id field value from clients collection as client_id query parameter in your HTTP request. Worked for me.