LemonLDAPNG / lemonldap-ng-docker

Dockerize LemonLDAP::NG
GNU General Public License v2.0
51 stars 30 forks source link

OpenIdConnect auth as Basic Auth #20

Closed amouhzi closed 5 years ago

amouhzi commented 5 years ago

Hello,

When I use Lemonldap installed on a final server, openid connect login authentication works correctly. When I use Lemonldap supplied in a docker container, the following error is displayed:

Unable to get access_token

But when I pass the credentials using body's request, it works.

It seems that the headers are not transmitted to the manager or something similar.

Some applications used only headers to authenticate.

coudot commented 5 years ago

Do you use the container with Apache? If yes these lines need to be uncommented in portal-apache2.conf :

        #RewriteCond %{HTTP:Authorization} .
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Or use

CGIPassAuth on
amouhzi commented 5 years ago

Yes, I'm using the container with apache. And this solved my problem.

Thank you so much.