The sync server's hasRole directive is passed into the makeExecutableSchema function inside schemaParser.js https://github.com/aerogear/data-sync-server/blob/master/server/lib/schemaParser.js#L15-L21 What needs to be done:
- Pass some info down to schemaParser.js (from server.js) so that schemaParser can determine whether keycloak is configured
- Ensure that the hasRole directive is only added when keycloak is enabled.
|