Skip to content
Snippets Groups Projects
Commit 32852059 authored by Davide Vaghetti's avatar Davide Vaghetti
Browse files

Merge branch 'master' into 'master'

Set config var with metadata_url and call it from EarcUtils instead of env

See merge request edugain/edugain-attribute-release-check!1
parents 45e3f84d 4233f8d2
No related branches found
No related tags found
1 merge request!1Set config var with metadata_url and call it from EarcUtils instead of env
......@@ -34,4 +34,4 @@ PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=
METADATA_URL=https://mdx.idem.garr.it/edugain/entities/
METADATA_URL='https://mdx.idem.garr.it/edugain/entities/'
......@@ -78,7 +78,7 @@ class EarcUtils
public static function getIdpMetadata($entityid)
{
$metaloader = new MetaLoader(null);
$metaloader->loadSource(array('src' => env('‘METADATA_URL’') . urlencode($entityid)));
$metaloader->loadSource(array('src' => config('app.metadata_url') . urlencode($entityid)));
$metaloader->writeMetadataFiles(Configuration::getInstance()->getPathValue('metadatagenerateddir', 'metadata-generated-idp/'));
include Configuration::getInstance()->getPathValue('metadatagenerateddir', 'metadata-generated-idp/').'saml20-idp-remote.php';
......
......@@ -145,7 +145,8 @@ return [
'http://eduid.hu' => 'https://attributes.eduid.hu',
],
'metadata_url' => env('METADATA_URL'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment