This repository contains a simple demo for authenticating users with Spring Security and an embedded LDAP server.
The app provides the following Rest API endpoints:
All endpoints require authentication, so you will see a login screen first.
To login use one of the following users:
user id | password |
---|---|
alice | alicepassword |
bob | bobpassword |
clara | secret |
joe | joepassword |
The embedded LDAP server initializes its user data by reading the file test-server.ldif. This file includes all users together with their encrypted passwords (using secure hashing encoders BCrypt, SCrypt and Argon2). One user (clara) uses an insecure clear password (just for demo purposes, don't do this in Production!).
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely: