By default application starting on port 8081
, but it can be changed in configuration file config.toml
.
go build # Build application
./insights-operator-ldapauth # Start application
For authentication is used POST request to /api/v1/login
with credentials:
{
"login": "your-ldap-login",
"password": "your-ldap-password"
}
For now it connecting directly to RedHat LDAP, so for running this application correctly you should be connected to RedHat VPN. After you recieve token
, you can use it in requests as Bearer Token
.
Application has only one route is /api/v1/login
, requests to other routes will be proxied to insights-operator-controller
.