What I am trying to do
Currently it looks like noone is using this module in IDP configuration at all. 2 Minutes after trying to work out how to configure the module I discovered a very obvious bug (www/assets/js/postReponse.js -> www/assets/js/postResponse.js, will create a MR for it) which made me doubt that anyone uses this in production.
So my question is: Is it save to assume that this module should not used for any production installation of SSP? If not I could use some hints on how to configure it to use it as IDP for
office.com.
What have I done so far?
My current idp configuration looks like this:
var/simplesamlphp# cat metadata/adfs-idp-hosted.php
<?php
$metadata['__DYNAMIC:1__'] = [
'host' => '__DEFAULT__',
'privatekey' => 'saml.key',
'certificate' => 'saml.crt',
'auth' => ad-test',
'authproc' => [
// Convert LDAP names to WS-Fed Claims.
100 => ['class' => 'core:AttributeMap', 'name2claim'],
],
'redirect.sign' => true,
'sign.logout' => true,
),
];
ad-test is an auth source connected to a test AD. Authentication against it works like a charm.
I replaced domain name of the instance with <URL>
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 5 STAT [20919036ff] User '<userid>@<stage.some.domain> successfully authenticated from <IP>
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 7 [20919036ff] Deleting state: '_6458e8293e07f42ed8f0e91be24646d4494bbca3fa'
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 7 [20919036ff] Session: doLogin("ad-test")
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 7 [20919036ff] Session: Valid session found with 'ad-test'.
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 7 [20919036ff] Session: Valid session found with 'ad-test'.
Jan 7 15:12:33 gwdg-proxy-stage-1 simplesamlphp[35768]: 7 [20919036ff] Filter config for urn:federation:<URL>:idp->urn:federation:MicrosoftOnline: array ( 0 => SimpleSAML\Module\core\Auth\Process\LanguageAdaptor::__set_state(array( 'langattr' => 'preferred
Language', 'priority' => 30, )), 1 => SimpleSAML\Module\core\Auth\Process\StatisticsWithAttribute::__set_state(array( 'attribu
te' => 'realm', 'typeTag' => 'saml20-idp-SSO', 'skipPassive' => false, 'priority' => 45, )), 2 => SimpleSAML\Module\core\Auth\Process\LanguageAdaptor::__set_state(array( 'langattr' => 'preferredLanguage', 'priority' => 99, )), 3 => SimpleSAML\Module\core\Auth\Process\AttributeMap::__set_state(array( 'map' => array ( 'c' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country', 'givenName' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname', 'mail' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress', 'memberOf' => '
http://schemas.microsoft.com/ws/2008/06/identity/claims/role', 'postalcode' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode', 'uid' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name', 'sn' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname', 'st' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince', 'streetaddress' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress', 'telephonenumber' => '
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone', ), 'duplicate' => false, 'priority' => 100, )),)
I know this is most likely an issue with configuration on MS side and because I am getting this error from the SP:
AADSTS50107: The requested federation realm object 'urn:federation:<URL>:idp' does not exist.
So the question is: Has anyone ever done this successfully and can give me some hints?