Hi Carlos,
I am sorry I don't have a solution to your request. But I think you might be of help to what I am struggling with.
We are in the process of coming up with an FID - pilot project. I am tasked to deploy a Discovery service. Yes I have deployed a standalone DiscoJuice . I am struggling to populate DiscoJuice with our Idp, no the edugain federations. We have an SP and Idp over simplesamlphp.
Can you help please.
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/13/2014 6:38 PM >>>
--
You received this message because you are subscribed to the Google Groups "DiscoJuice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discojuice+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
Please consider the environment before printing this email.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
Please consider the environment before printing this email.
Hi,
Thank you I will try it and let you know the results.
On which file should I add this?
Correct me if I am wrong, I need to replace the entityID, country, title and the geo location with the correct values?
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/14/2014 9:01 PM >>>
--
You received this message because you are subscribed to a topic in the Google Groups "DiscoJuice" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discojuice/VwkikqywTzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discojuice+...@googlegroups.com.
below is the discojuice/central.php file:
<?php
if (empty($_REQUEST['entityID'])) throw new Exception('Missing parameter [entityID]');
if (empty($_REQUEST['return'])) throw new Exception('Missing parameter [return]');
$djconfig = SimpleSAML_Configuration::getOptionalConfig('discojuice.php');
$config = SimpleSAML_Configuration::getInstance();
// EntityID
$entityid = $_REQUEST['entityID'];
// Return to...
$returnidparam = !empty($_REQUEST['returnIDParam']) ? $_REQUEST['returnIDParam'] : 'entityID';
$href = SimpleSAML_Utilities::addURLparameter(
$_REQUEST['return'],
array($returnidparam => '')
);
$hostedConfig = array(
// Name of service
$djconfig->getString('name', 'Service'),
$entityid,
// Url to response
SimpleSAML_Module::getModuleURL('discojuice/response.html'),
// Set of feeds to subscribe to.
$djconfig->getArray('feeds', array('edugain')),
$href
);
/*
"a.signin", "Teest Demooo",
"https://example.org/saml2/entityid",
"' . SimpleSAML_Module::getModuleURL('discojuice/discojuice/discojuiceDiscoveryResponse.html') . '", ["kalmar"], "http://example.org/login?idp="
*/
$t = new SimpleSAML_XHTML_Template($config, 'discojuice:central.tpl.php');
$t->data['hostedConfig'] = $hostedConfig;
$t->data['enableCentralStorage'] = $djconfig->getBoolean('enableCentralStorage', true);
$t->data['additionalFeeds'] = $djconfig->getArray('additionalFeeds', null);
$t->show();
Do I need to put it inside the $hostedConfig function or outside? This is the metadata of my IdP:
$metadata['https://myorg.ac.za/simplesamlphp/saml2/idp/metadata.php'] = array (
'metadata-set' => 'saml20-idp-remote',
'entityid' => 'https:/myorg.ac.za/simplesamlphp/saml2/idp/metadata.php',
'SingleSignOnService' =>
array (
0 =>
array (
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'https://myorg.ac.za/simplesamlphp/saml2/idp/SSOService.php',
),
),
'SingleLogoutService' => 'https://myorg.ac.za/simplesamlphp/saml2/idp/SingleLogoutService.php',
'certData' => 'MIID3zCCAsegAwIBAgIJAJkJJwZPrjyDMA0GCSqGSIb3DQEB1dGVuZzERMA8GA1UEBwwIUHJldG9yaWExDTALBgNVBAoMBENTSVIxDzANBgNVBAsMBlNBTlJlTjEOMAwGA1UEAwwFU2FraGkxITAfBgkqhkiG9w0BCQEWEnNoYWRlYmVAY3Npci5jby56YTAeFw0xNDAzMTcxMDQ2MDhaFw0yNDAzMTYxMDQ2MDhaMIGFMQswCQYDVQQGEw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I put the values of the line you sent me?
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/17/2014 3:49 PM >>>
I have tried but I am not getting it write.
Can you tell me waht info would you need to help me with this. I definitely need help on this.
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/17/2014 3 :49 PM >>>
djc.inlinemetadata = [
{"entityID":"https:\/\/idp.yourorg.edu.za\/entity\/path","country":"ZA","title":"Organization Name","geo":{"lat":"4.8744","lon":"-74.0281"}},
]
I have tried and nothing seems to be fixed so far. Instead now it's showing a blank gray screen. Maybe I was working on the wrong file. Attached is the discojuice/central.tpl.php file.
The hostnames involved are:
sa-sp.sanren.ac.za : SP
sa-idp.sanren.ac.za : Idp
Can you please check it and advise what is it that I am doing wrong. Please let me know if you need more info to help me.
Please help out!
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/17/2014 3:49 PM >>>
Hi Sakhi,
If you define a djc variable, just as:
var djc = DiscoJuice.Hosted.getConfig(options);
Then yo can put the djc.inlinemetadata line just after that.
p
Regards.
Hi Carlos,
I have tried to configure discojuice to add my IdP in the central.tpl.php file. Not sure if it is the correct file to apply the configurations. Please advise. Below is my configuration:
var djc = DiscoJuice.Hosted.getConfig(
"Demo of local auth",
"https://servername/simplesaml/saml2/idp/metadata.php", // here goes in my IdP entityID
"http://dev.discojuice.org/discojuice/discojuiceDiscoveryResponse.html", ["edugain"], "http://example.org/login?idp="
);// I am really not sure what should I put in this line?
djc.inlinemetadata = [
{
'entityID': 'https://servername/simplesaml/saml2/idp/metadata.php', // IdP entityID
'auth': 'local',
'title': 'Local authentication',
'country':'_all_',
'geo':null,
'weight':-8
}
];
If you need more details to get this running, please let me know.
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/17/2014 3:49 PM >>>
Hi Carlos,
Sorry I had some pressing projects and didn't update you on this. I am still stuck. Which specific file do I need to add this onto?
Can you send me a detailed configuration file that I can maybe refer to.
Regards,
Sakhi Hadebe
SANReN Engineer - CSIR Meraka Institute
Tel: +27 12 841 2308
Fax: +27 12 841 4223
http://www.sanren.ac.za
>>> Carlos González<carl...@gmail.com> 3/17/2014 3:49 PM >>>