This example shows how to create and register a custom IAuthIntialize
authentication handler on the client that authenticates against a server that was started with the corresponding authenticator.
GEODE_HOME
environment variable set to the location of the Apache Geode installation.GEODE_HOME/bin
in the execution path.AuthInitialize
directory in your example workspace.$ cd workspace/examples/dotnet/AuthInitialize
Run the startserver.ps1
script to start the Geode cluster with authentication and create a region.
Execute AuthInitialize.exe
:
.\AuthInitialize.exe ExampleAuthInitialize::ExampleAuthInitialize called ExampleAuthInitialize::GetCredentials called a = 1 b = 2