Current Situation:
The documentation for QuickStatements, both in the Docker image READMEwe indicate that the user should set WB_PUBLIC_SCHEME_HOST_AND_PORT to "Host and port of Wikibase as seen by the user's browser". However, for QuickStatements OAuth to work this address also needs to be accessible inside the Docker network in a Docker compose environment such as we have provided in our example. Docker service names without an additional tool or special configuration on a user's machine will not be accessible in the "user's browser".
Once an address is configured which is accessible both inside and outside the service in a Docker Compose context, OAuth will work.
Goal:
Make Quickstatements oauth work in example configuration.
Acceptance Criteria:
Determine if there is a way to configure QuickStatements to work with an address which is strictly used internally by requests issued by the service, and one that is only used for links or redirects happening externally in the user's browser:
- If this is possible, correct the current environment variables usage within the QuickStatements image Docker setup (i.e. Docker/build/QuickStatements/*) to make WIKIBASE_SCHEME_AND_HOST be only used internally, and WB_PUBLIC_SCHEME_HOST_AND_PORT and QS_PUBLIC_SCHEME_HOST_AND_PORT only ever used for things which happen in the user's browser.
- If this isn't possible. then amend the documentation both on the QuickStatements docker image and in /example to clarify the use of these variables along with a suggestion or two about how to configure an address that is accessible both inside and outside the Docker service.
Notes:
- The issue may well be with our image instead of the example config