-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Finish implementing OAuth & test it #10
Comments
Right now, only password grant is supported. Would be better having all grants implemented. |
Another problem, figuring out how to fix some errors are difficult.
|
I have a comment about exactly this here: 0e2016a This needs to be improved. Once database relations are properly set up, you can actually do a join query, which means that you will basically only have one database call which will make this a lot easier to handle and you can dump the errors straight into winston. The reason I left the error message generic ("invalid resource") is because this is what the end-user will see. I would have done this myself, but I did not feel comfortable touching the oauth stuff in my rebase PR. |
But you can actually pinpoint the problem from your log there. The last SELECT query probably did not return a result, and you can see where that occured pretty easily from the source: website/packages/api/src/oauth.ts Line 94 in ca09625
|
Looks like a typo there. |
I fixed the typo and now OAuth is working, will leave this issue open until all OAuth grants are implemented. |
Also, add tests ;) |
That too |
These grants are currently implemented:
The other standard types supported by
|
No longer relevant with how the website functions now |
Definitely should be unit tests for OAuth and the rest of the OAuth model spec from this webpage should be implemented.
The text was updated successfully, but these errors were encountered: