Test OIDC PHP client application
Find a file
Benjamin Renard 2b994f5898
Some checks failed
Run tests / tests (push) Failing after 38s
Initial version
2024-07-24 18:13:46 +02:00
.forgejo/workflows Initial version 2024-07-24 18:13:46 +02:00
public_html Initial version 2024-07-24 18:13:46 +02:00
.gitignore Initial version 2024-07-24 18:13:46 +02:00
.pre-commit-config.yaml Initial version 2024-07-24 18:13:46 +02:00
composer.json Initial version 2024-07-24 18:13:46 +02:00
phpstan.neon Initial version 2024-07-24 18:13:46 +02:00
README.md Initial version 2024-07-24 18:13:46 +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>