OIDC test - test jumbojett oidc round two change root paths
This commit is contained in:
1 parent
4b7abac7ca
commit
07d3895eb5
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
|
|||||||
# Apache on 8069
|
# Apache on 8069
|
||||||
COPY apache_ports.conf /etc/apache2/ports.conf
|
COPY apache_ports.conf /etc/apache2/ports.conf
|
||||||
COPY apache_vhost.conf /etc/apache2/sites-available/000-default.conf
|
COPY apache_vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||||
COPY web/ /var/www/html/
|
COPY web/ /var/www/
|
||||||
# Set up composer
|
# Set up composer
|
||||||
WORKDIR /var/www/html/
|
WORKDIR /var/www/html/
|
||||||
RUN composer require jumbojett/openid-connect-php
|
RUN composer require jumbojett/openid-connect-php
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
require __DIR__ . '/vendor/autoload.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
use Jumbojett\OpenIDConnectClient;
|
use Jumbojett\OpenIDConnectClient;
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
$config = require __DIR__ . '/config.php';
|
$config = require __DIR__ . '/../config.php';
|
||||||
|
|
||||||
$oidc = new OpenIDConnectClient(
|
$oidc = new OpenIDConnectClient(
|
||||||
$config['provider_url'],
|
$config['provider_url'],
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
require __DIR__ . '/vendor/autoload.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
use Jumbojett\OpenIDConnectClient;
|
use Jumbojett\OpenIDConnectClient;
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
$config = require __DIR__ . '/config.php';
|
$config = require __DIR__ . '/../config.php';
|
||||||
|
|
||||||
$oidc = new OpenIDConnectClient(
|
$oidc = new OpenIDConnectClient(
|
||||||
$config['provider_url'],
|
$config['provider_url'],
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
$config = require __DIR__ . '/config.php';
|
$config = require __DIR__ . '/../config.php';
|
||||||
|
|
||||||
if (!isset($_SESSION['authenticated'])) {
|
if (!isset($_SESSION['authenticated'])) {
|
||||||
// User not logged in – show a login button
|
// User not logged in – show a login button
|
||||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user