Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Support question: waterwheel.js in combination with Reservoir? #78

Open
Xilver opened this issue May 24, 2018 · 2 comments
Open

Support question: waterwheel.js in combination with Reservoir? #78

Xilver opened this issue May 24, 2018 · 2 comments

Comments

@Xilver
Copy link

Xilver commented May 24, 2018

I'm a frontend developer who's been working on an internal R&D project to see how we can have a decoupled Drupal installation and a React frontend. I was thinking that Waterwheel and Reservoir would work well together, but that doesn't seem to be the case. I assume Waterwheel expects newer module versions (more specifically simple_oauth) than what Reservoir currently offers in its alpha state.

At least that's what I would gather from the error I'm getting when using jsonapi.get: Fatal error: Class Drupal\simple_oauth\Authentication\TokenAuthUser contains 6 abstract methods and must therefore be declared abstract or implement the remaining methods. Updating simple_oauth to the latest version doesn't seem to be supported on the current Reservoir version either.

Are there any plans in the future to bring the two closer together? As a non-backend developer, both Reservoir and Waterwheel seemed like great choices to keep my current API-first Javascript workflow going. Or should I go for a full-fledged Drupal 8 installation and implement RESTful APIs that way?

@Xilver
Copy link
Author

Xilver commented May 25, 2018

Update: A full Drupal 8 installation with an updated simple_oath module doesn't seem to do the trick, I'm getting loads of other errors now. Not using OAuth at all (validation: false in config.js) does work however, and that way I can use Reservoir.

@NickDaelemans
Copy link

I'm having the same issues. It looks like Reservoir is depending on the simple_oauth module 2.0-rc2 which doesn't support bearer tokens, which is what waterwheel uses. Upgrading to 8.x-3.8 could be a possible solution. But since reservoir is depending on the 2.0-rc2 version, this solution doesn't seem to work.

Another solution would be to use another type of tokens inside of waterwheel.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants