Enabling SSO

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
Arametheus
Posts: 3
Joined: Wed Sep 11, 2024 8:47 pm

Enabling SSO

Post by Arametheus »

So I'm using AWS s3 Linux 2023 with Nginx and php 8.3 to run PhpMyFaq

My other application is Laravel Application which I'm trying to enable SSO in PhpmyFaq so I can have the users authenticate on our side then pass it to PhpMyFaq.

When I go into PhpmyFaq 3.2.9 edit Configuration => Security the SSO check box is greyed out (read only).

I need some help to point me in the right direction.

Thank you in advance for your help.

---------------------------------------------
Well I got this to work finally.

To make it work I had to configure nginx to pass remote_user to php.

first edit this file /etc/nginx/fastcgi_params.default
add fastcgi_param REMOTE_USER $remote_user;

Then in your nginx conf file for your site in the location section add
# Pass REMOTE_USER only in admin area
fastcgi_param REMOTE_USER $remote_user;


then in php
edit the /etc/php-fpm.d/www.conf file
uncomment clear_env = no

Then restart both php-fpm and nginx. this activated it.


1. this should be part of the directions wasted too much time getting this to work.
2. was a little disappointed the auth system is only 1 and not a mix of them as it would 't be hard to set auth type under the user then during login check if that user is set to local if so log them in if not then deny the login.
Thorsten
Posts: 15620
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Enabling SSO

Post by Thorsten »

Hi,

thanks for the feedback, I added some documentation about SSO and nginx. I also added that for Apache.

https://phpmyfaq.readthedocs.io/en/main ... on-support

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply