40 lines
1.2 KiB
Markdown
40 lines
1.2 KiB
Markdown
|
# 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>
|
||
|
```
|