h3. Description * This is a task for verification of *documentation* and *functionality of Data Sync service* * If you find any flaw or inconsistency in documentation, update this JIRA with its description: AEROGEAR-7894 - general verification of documentation was already done, so we'll try to fix all the mistakes found in the scope of one JIRA * If you find any bug, file a new JIRA and add it to the backlog with label {color:#59afe1}team-service-2{color}
h3. Steps
1. Follow the steps in documentation to configure keycloak with users & roles 2. Follow the docs to bind keycloak to data sync service: https://docs.aerogear.org/aerogear/latest/data-sync.html#auth 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)
h4. 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 |
|