Steps 1. Follow the steps in documentation to configure keycloak with users & roles 2. Follow the docs to bind keycloak to data sync service 3. Verify the /graphql endpoint in data sync server URL is protected by keycloak and that you can login and you are redirected back to /graphql (you can see the playground) Verify the functionality with memeolist app If using OpenShift cluster with self-signed certificate:
- Download https://gist.github.com/psturc/fb4159616ada500664f5dc8ed640c950#file-prepare_memeolist_app-sh, oc login to your openshift instance, get the project name where keycloak & datasync is provisioned and and run:
bash prepare_memeolist_app.sh <openshift_project_name>
- if you go to the url bash script has printed to output (playground), you will probably see an error "error": "Failed to fetch schema. Please check your connection". See steps below to get it working
If using cluster with valid SSL cert (e.g. community cluster), follow the steps in this gist file: https://gist.github.com/psturc/fb4159616ada500664f5dc8ed640c950#file-memeolist-db-setup-md
- Go to /graphql endpoint of data sync server URL
To fetch the schema
- To fetch the schema, you need a keycloak token from /token endpoint
- Copy it and paste it in the http headers section in the playground
- then you can verify memeolist queries are now available
|