Skip to content

Commit 0940bbe

Browse files
authored
Merge pull request #43 from shingo78/feature/add-orthros
Add Orthros IdP to Embedded DS
2 parents 8e93a2b + a284672 commit 0940bbe

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

auth-proxy/resources/etc/templates/config.php.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ $config = [
12741274
['type' => 'flatfile', 'directory' => 'metadata/gakunin-metadata'],
12751275
['type' => 'flatfile', 'directory' => 'metadata/attributeauthority-remote'],
12761276
['type' => 'flatfile', 'directory' => 'metadata/open-idp-metadata'],
1277+
['type' => 'flatfile', 'directory' => 'metadata/orthros-metadata'],
12771278
{% if cgidp_localfile_metadata=="1" or cgidp_localfile_metadata=="yes"
12781279
or enable_test_federation=="1" or enable_test_federation=="yes" %}
12791280
['type' => 'xml', 'file' => 'metadata/xml/cgidp-metadata.xml'],

auth-proxy/resources/etc/templates/embedded-wayf-config.js.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,18 @@ var wayf_sp_samlDSURL = wayf_sp_handlerURL;
199199
// that shall be added to the drop-down list
200200
// The IdPs will be displayed in the sequence they are defined
201201
// [Optional, commented out by default]
202+
{% set enable_test_federation = env("ENABLE_TEST_FEDERATION", "no") %}
202203
var wayf_additional_idps = [
203204
{name:"OpenIdP",
204205
entityID:"https://openidp.nii.ac.jp/idp/shibboleth",
205206
SAML1SSOurl:"https://openidp.nii.ac.jp/idp/profile/Shibboleth/SSO"},
207+
{% if enable_test_federation=="1" or enable_test_federation=="yes" %}
208+
{name:"Orthros",
209+
entityID:"https://core-stg.orthros.gakunin.nii.ac.jp/idp"},
210+
{% else %}
206211
{name:"Orthros",
207212
entityID:"https://core.orthros.gakunin.nii.ac.jp/idp"},
213+
{% endif %}
208214
];
209215
210216
// Example of how to add Identity Provider from other federations

auth-proxy/resources/etc/templates/federation/module_metarefresh-test.php.j2

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ $config = [
1717
'outputDir' => 'metadata/gakunin-metadata/',
1818
'outputFormat' => 'flatfile',
1919
'expireAfter' => 60*60*24*4
20-
]
20+
],
21+
'orthros-metadata' => [
22+
'cron' => ['daily'],
23+
'sources' => [
24+
[
25+
'src' => 'https://core-stg.orthros.gakunin.nii.ac.jp/metadata/orthrosstg-idp-metadata.xml',
26+
]
27+
],
28+
'outputDir' => 'metadata/orthros-metadata/',
29+
'outputFormat' => 'flatfile',
30+
'expireAfter' => 60*60*24*4
31+
],
2132
]
2233
];

auth-proxy/resources/etc/templates/federation/module_metarefresh.php.j2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ $config = [
2929
'outputFormat' => 'flatfile',
3030
'expireAfter' => 60*60*24*4
3131
],
32+
'orthros-metadata' => [
33+
'cron' => ['daily'],
34+
'sources' => [
35+
[
36+
'src' => 'https://core.orthros.gakunin.nii.ac.jp/metadata/orthros-idp-metadata.xml',
37+
]
38+
],
39+
'outputDir' => 'metadata/orthros-metadata/',
40+
'outputFormat' => 'flatfile',
41+
'expireAfter' => 60*60*24*4
42+
],
3243
'open-idp-metadata' => [
3344
'cron' => ['daily'],
3445
'sources' => [

0 commit comments

Comments
 (0)