manjeshpv / node-oauth2-server-implementation

Using oauth2-server: 3.0.0-b2 & Supports MongoDB, MySQL, PostgreSQL, MSSQL & SQLite
216 stars 103 forks source link

Create or Generate New Access Token using Password Grant Type #14

Closed rnl2004 closed 7 years ago

rnl2004 commented 7 years ago

Hi manjeshpv, Good day!

I have encountered an issue on creating new access token: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -H "Postman-Token: c3df2fab-440f-09e4-0c5c-c9f46ef9836b" -d "username=admin&password=admin &grant_type=password&client_id=democlient&client_secret=democlientsecret" "http://localhost:3000/oauth/token" {"message":"user is not defined","code":503,"name":"server_error","inner":{}}

I already updated the node-oauth2-server-implementaion repo on my local machine. I'm using mysql oauth_demo schema as is. Did i missed something? Thanks

rnl2004 commented 7 years ago

I transferred my issue to Server Error thread