Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EduGAIN Attribute Release Check
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
EARC
EduGAIN Attribute Release Check
Commits
4233f8d2
Commit
4233f8d2
authored
3 years ago
by
Davide Vaghetti
Browse files
Options
Downloads
Patches
Plain Diff
Set config var with metadata_url and call it from EarcUtils instead of env
parent
45e3f84d
No related branches found
No related tags found
1 merge request
!1
Set config var with metadata_url and call it from EarcUtils instead of env
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.example
+1
-1
1 addition, 1 deletion
.env.example
app/Libraries/EarcUtils.php
+1
-1
1 addition, 1 deletion
app/Libraries/EarcUtils.php
config/app.php
+2
-1
2 additions, 1 deletion
config/app.php
with
4 additions
and
3 deletions
.env.example
+
1
−
1
View file @
4233f8d2
...
@@ -34,4 +34,4 @@ PUSHER_APP_ID=
...
@@ -34,4 +34,4 @@ PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_KEY=
PUSHER_SECRET=
PUSHER_SECRET=
METADATA_URL=
‘
https://mdx.idem.garr.it/edugain/entities/
’
METADATA_URL=
'
https://mdx.idem.garr.it/edugain/entities/
'
This diff is collapsed.
Click to expand it.
app/Libraries/EarcUtils.php
+
1
−
1
View file @
4233f8d2
...
@@ -78,7 +78,7 @@ class EarcUtils
...
@@ -78,7 +78,7 @@ class EarcUtils
public
static
function
getIdpMetadata
(
$entityid
)
public
static
function
getIdpMetadata
(
$entityid
)
{
{
$metaloader
=
new
MetaLoader
(
null
);
$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/'
));
$metaloader
->
writeMetadataFiles
(
Configuration
::
getInstance
()
->
getPathValue
(
'metadatagenerateddir'
,
'metadata-generated-idp/'
));
include
Configuration
::
getInstance
()
->
getPathValue
(
'metadatagenerateddir'
,
'metadata-generated-idp/'
)
.
'saml20-idp-remote.php'
;
include
Configuration
::
getInstance
()
->
getPathValue
(
'metadatagenerateddir'
,
'metadata-generated-idp/'
)
.
'saml20-idp-remote.php'
;
...
...
This diff is collapsed.
Click to expand it.
config/app.php
+
2
−
1
View file @
4233f8d2
...
@@ -145,7 +145,8 @@ return [
...
@@ -145,7 +145,8 @@ return [
'http://eduid.hu'
=>
'https://attributes.eduid.hu'
,
'http://eduid.hu'
=>
'https://attributes.eduid.hu'
,
],
],
'metadata_url'
=>
env
(
'METADATA_URL'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Autoloaded Service Providers
| Autoloaded Service Providers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment