Files
spring-data-examples/geode/security
Mark Paluch 54f7146e0f #539 - Polishing.
Add author tags. Simplify dependency setup. Replace logger declarations with Lombok's CommonsLog. Simplify test annotations.

Disable WAN module as the WAN server does not stop after running tests. Reformat code.
2020-02-27 10:22:22 +01:00
..
2020-02-27 10:22:22 +01:00
2020-02-27 10:22:22 +01:00

Security Example

In this example a Pivotal GemFire / Apache Geode client and server will set up with security (username/password) authentication using Geode Security and Apache Shiro.

To run the example simply run the tests located under security/src/test in your IDE. There are two test files; one uses Geode Security and the other uses Apache Shiro. Both versions should behave the same.

The client is configured to connect to the server on localhost port 40404. There is no need to start the server separately, as that is taken care of by the test.

Running the example

The example is broken up into multiple steps:

  1. Insert (Put) three Customer entries into the Customers region using the repositories save method.
  2. Print the customers on the server.

NOTE: Inorder to see output, you must change the loglevel from "error" to "info" in the logback.xml file located under src/test/resources.