Test OIDC PHP client application
Find a file
Benjamin Renard 9b16074409
All checks were successful
Run tests / tests (push) Successful in 15s
Initial version
2024-07-24 18:20:10 +02:00
.forgejo/workflows Initial version 2024-07-24 18:20:10 +02:00
public_html Initial version 2024-07-24 18:20:10 +02:00
.gitignore Initial version 2024-07-24 18:20:10 +02:00
.pre-commit-config.yaml Initial version 2024-07-24 18:20:10 +02:00
composer.json Initial version 2024-07-24 18:20:10 +02:00
phpstan.neon Initial version 2024-07-24 18:20:10 +02:00
README.md Initial version 2024-07-24 18:20:10 +02:00

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 (from composer Debian packages for instance, see https://getcomposer.org/download/ otherwise)
  • PHP curl and json extensions (from php-curl and php-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>