tree: 958ce474639764bf3c8f8982693022559fe10b65 [path history] [tgz]
  1. ExampleAuthInitialize.cs
  2. Program.cs
  3. README.md
  4. startserver.ps1
  5. stopserver.ps1
examples/dotnet/AuthInitialize/README.md

AuthInitialize Example

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.

Prerequisites

  • Install Apache Geode
  • Build and install Apache Geode Native
  • Apache Geode Native examples, built and installed.
  • A GEODE_HOME environment variable set to the location of the Apache Geode installation.
  • GEODE_HOME/bin in the execution path.

Running

  1. Set the current directory to the AuthInitialize directory in your example workspace.
$ cd workspace/examples/dotnet/AuthInitialize
  1. Run the startserver.ps1 script to start the Geode cluster with authentication and create a region.

  2. Execute AuthInitialize.exe:

.\AuthInitialize.exe
ExampleAuthInitialize::ExampleAuthInitialize called
ExampleAuthInitialize::GetCredentials called
a = 1
b = 2