Test OIDC PHP client application
|
||
---|---|---|
.forgejo/workflows | ||
public_html | ||
.gitignore | ||
.pre-commit-config.yaml | ||
composer.json | ||
phpstan.neon | ||
README.md |
Test OIDC Client
This application acting as OIDC Client.
Features :
- Login/Logout on OIDC server
- Local logout
- Show authenticated user's information (token ID, claims and attributes)
Requirements
- PHP 7.0 or greater
composer
to install dependencies (fromcomposer
Debian packages for instance, see https://getcomposer.org/download/ otherwise)- PHP
curl
andjson
extensions (fromphp-curl
andphp-json
Debian packages for instance) - Apache PHP support (using mod_php or PHP Fpm, install libapache2-mod-php Debian packages for instance)
Installation
- Install the application and its requirements
apt install -y libapache2-mod-php php-curl php-json git composer
mkdir -p /var/www/connection/
git clone https://gogs.zionetrix.net/bn8/test-oidc-client.git /var/www/connection/test-oidc-client
cd /var/www/connection/test-oidc-client
composer install
- Configure access to the application, for instance, in an existing Apache VirtualHost definition by adding something like:
Alias /test-oidc /var/www/connection/test-oidc-client/public_html
ProxyPass /test-oidc !
<Directory /var/www/connection/test-oidc-client/public_html>
Require all granted
</Directory>