-
Notifications
You must be signed in to change notification settings - Fork 9
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
Examples are out of date #14
Comments
Also, client_secret is always null AFAICT in the getClient calls to the model. |
Hi @jfstephe can you please provide some more debugging info:
|
Hi, Also I think all the examples/docs are missing that you need to implement the authenticateHandler.handle method. const oauth = new OAuthServer({
model: new InMemoryAuthModel(),
authenticateHandler: {
handle: function(req, res) {
// Check if authenticated and return a user object if so
return req.session.user;
}
}
}); Without that you can't get a code. |
Related to node-oauth/node-oauth2-server#180 I'm trying to understand where:
I can't find anything anywhere where this is clearly explained. |
Also, in the memory example saveToken() should also persist the client (as it does in the other examples). |
@jfstephe Did you manage to solve this puzzle ? I'm having troubles to put the pieces together.. |
Yes examples are still out of date and need to be updated to work with async (PR #22) |
I removed the examples from this repo and will update them in our dedicated examples repo at https://github.com/node-oauth/node-oauth2-server-examples Edit - they are not there yet but I will add them later on |
Hi,
I'm n the process of trying to use the in-memory model in the examples folder to get going but in my Typescript project I have several errors relating to missing functions. I suspect that this also may apply to the other examples too.
e.g. verifyScope()
Can you confirm?
John
The text was updated successfully, but these errors were encountered: