Hello Monika,
There are some ways of configuring the Method Authorizer without GemFire SHell [1] + Cluster Configuration Service [2], but it implies using internal classes and modifying the default product behaviour (highly discouraged).
You can certainly go down this path, but be warned:
- There's no backward compatibility guaranteed when using internal classes.
- It is not officially supported by VMware (in case you have a support contract for VMware GemFire).
If, after reading the above, you still want to give it a try, the easiest way would be to use the AlterQueryServiceFunction [3] to change the OQL Method Authorizer on all running members, which is basically what the gfsh alter query-service internally does here [4].
Another option (it still uses internal classes), since you are starting the servers as SpringBoot Applications, would be to get the actual InternalCache [5] instance, retrieve the QueryConfigurationService [6] and execute one of the internal updateMethodAuthorizer() methods. And example of this approach, used within the test classes, can be seen here [7].
Hope this helps.
Best regards.
[1]: https://gemfire.docs.pivotal.io/910/gemfire/tools_modules/gfsh/chapter_overview.html
[2]: https://gemfire.docs.pivotal.io/910/geode/configuring/chapter_overview.html
[3]: https://github.com/apache/geode/blob/develop/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/AlterQueryServiceFunction.java
[4]: https://github.com/apache/geode/blob/develop/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/AlterQueryServiceCommand.java#L79-L94
[5]: https://github.com/apache/geode/blob/develop/geode-core/src/main/java/org/apache/geode/internal/cache/InternalCache.java
[6]: https://github.com/apache/geode/blob/develop/geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryConfigurationService.java
[7]: https://github.com/apache/geode/blob/develop/geode-core/src/distributedTest/java/org/apache/geode/cache/query/internal/QueryConfigurationServiceConstraintsDistributedTest.java#L136-L143