/insights-operator-ldapauth

LDAP Auth proxy for https://github.com/RedHatInsights/insights-operator-controller

Primary LanguageGoApache License 2.0Apache-2.0

Insights operator LDAP Auth

Go Report CardBuild Status

Starting

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

Authentication

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.

RestAPI

Application has only one route is /api/v1/login, requests to other routes will be proxied to insights-operator-controller.