example

command
v0.0.0-...-dd668d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

Start server

./genkeys.sh
./example -server ldap:389 -base dc=example,dc=com -domain example

Login, verify and denied access

curl -k -d '{ "username": "my_username", "password": "my_password" }' -X POST https://localhost:8080/login >token
curl -i -k --header "Authorization: Bearer $(cat token)" https://localhost:8080/verify
curl -i -k --header "Authorization: Bearer $(cat token)" https://localhost:8080/admin

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL