-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example fails to work - Invalid argument: model does not implement getClient()
#38
Comments
I've also tried passing this as the model: https://github.com/oauthjs/express-oauth-server/tree/master/examples/memory It was missing a method that needed to be added btw.. not sure if this is being kept up to date? |
I have the same issue. |
I have the same problem... any news about this? |
After I implemented the solution from @stauvel's comment, I got another error: |
@chitkosarvesh I was able to resolve the message of client_id missing by appending it to the URL on the post or by adding it to the body of the request. However, with the example I still get an error.
|
Getting same issue @earmbrust Anyone working this ? Can anyone share there implementation of OAuth2 Server with NodeJS ? Thanks. |
I can generate bearer token using "oauth2-server": "^2.4.1" without express-oauth-server. Working copy (https://github.com/smndey/nodeapp/tree/v3-mongo-oauth-server/server). However I am facing same issue if I use "express-oauth-server":"^2.0.0" and "oauth2-server": "^3.0.0". In oauth2-server -3.x they have improved many things (Promises instead of callback, Use new keyword to initialize oauth server etc) and based on that we have to change our models. |
Hitting this issue also with the mongoose example |
I get Does anyone know a way to solve this? @chitkosarvesh Have you found a solution? |
It seems you need to pass an with
|
The example is outdated. I debugged it for a couple of days, and finally got it to work: I only tested it for |
As @kobi well said, the provided sample is only implementing the authorize() endpoint. There are other two endpoints: token(), authenticate(). Even so, I didn't get why |
Example in README at https://github.com/oauthjs/express-oauth-server fails to work with error:
If this isn't a complete example it would help to mention that and suggest what is needed to get this working. Node version: 6.x
The text was updated successfully, but these errors were encountered: