From 269b0cf4e2aba7cdca1ae31849e805892f75dfd0 Mon Sep 17 00:00:00 2001 From: zvonimir Date: Thu, 16 Jan 2020 08:58:03 +0100 Subject: [PATCH] Update index.php security instantiation --- web/index.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/web/index.php b/web/index.php index 220bcd3..8932636 100644 --- a/web/index.php +++ b/web/index.php @@ -59,13 +59,23 @@ function () { 'secured' => array( 'pattern' => '^.*$', 'jwt' => [ - 'validation' => $app['config']['jwt']['validation'], - 'required_claims' => [ - 'uid', - 'nick', - 'email', + 'uitid' => [ + 'validation' => $app['config']['jwt']['uitid']['validation'], + 'required_claims' => [ + 'uid', + 'nick', + 'email', + ], + 'public_key' => 'file://' . __DIR__ . '/../' . $app['config']['jwt']['uitid']['keys']['public']['file'] + ], + 'auth0' => [ + 'validation' => $app['config']['jwt']['auth0']['validation'], + 'required_claims' => [ + 'email', + 'sub', + ], + 'public_key' => 'file://' . __DIR__ . '/../' . $app['config']['jwt']['auth0']['keys']['public']['file'] ], - 'public_key' => 'file://' . __DIR__ . '/../' . $app['config']['jwt']['keys']['public']['file'], ], 'stateless' => true, ),