Authentication Sample App
The authentication sample app performs authentication against a configured LDAP IdP.
Building
Prerequisites:
Docker installed locally.
Building the sample authn
The sample application can be built from within this directory using make build
Configuration
The sample application takes a configuration YAML file. The following is a sample configuration:
ldapconfig:
url: ldap://ldap:389
name: Local LDAP
address: ":8899"
Running the sample application
The sample application can be run by using make up
.
Interacting
To authenticate, POST to http://localhost:8899/authn
with body
{
"username": "cn=admin,dc=example,dc=org",
"password": "admin"
}
Contributing
Information on the contributing process can be found here.