Hi Stefano,
Is it possible for you to post a sample assertion that works for
Joomla? I can't seem to get past this point. I'm sending an
assertional with a transient ID, and the username, e-mail, givenname,
and sn specified as attributes by their urn. I've made sure that the
username I'm sending doesn't already exist in the Joomla database.
Here is what I'm sending (I trimmed the signature):
[10/24/2011][11:27:08][4968][3832][d0b21731-babdfec2-935bf20d-
e6ae2085-178cbaac-7d][SSO.java][sendSAMLResponse][SAML2 Single Sign-On
Service sending SAML Response: <Response
xmlns="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://
fedman.ihg.sand.ttg.lan:444/components/com_idemauth/simplesamlphp/www/
module.php/saml/sp/saml2-acs.php/idemauth-sp"
ID="_ff6f9175cca40d743c34bdbfaea5a2d969fc"
InResponseTo="_b7ceeb4889257bc6ceb9c15a795819f418c63e6e40"
IssueInstant="2011-10-24T15:27:08Z" Version="2.0">
<ns1:Issuer xmlns:ns1="urn:oasis:names:tc:SAML:2.0:assertion"
Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">fedmanidp</
ns1:Issuer>
<Status>
<StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/
>
</Status>
<ns2:Assertion xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_b7a429cc086cad72766436568c21c27b60da"
IssueInstant="2011-10-24T15:27:08Z" Version="2.0">
<ns2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-
format:entity">fedmanidp</ns2:Issuer><ds:Signature xmlns:ds="http://
www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="
http://www.w3.org/2001/10/xml-
exc-c14n#"/>
<ds:SignatureMethod Algorithm="
http://www.w3.org/2000/09/xmldsig#rsa-
sha1"/>
<ds:Reference URI="#_b7a429cc086cad72766436568c21c27b60da">
<ds:Transforms>
<ds:Transform Algorithm="
http://www.w3.org/2000/09/xmldsig#enveloped-
signature"/>
<ds:Transform Algorithm="
http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="
http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>pf1sg7FdCX4cI4ej+uryIO9/4vI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
...
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
...
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<ns2:Subject>
<ns2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-
format:transient">_74b5848da57de9c96ef5b7a853a82439701a</ns2:NameID>
<ns2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:
2.0:cm:bearer">
<ns2:SubjectConfirmationData
InResponseTo="_b7ceeb4889257bc6ceb9c15a795819f418c63e6e40"
NotOnOrAfter="2011-10-24T15:28:37Z" Recipient="https://
fedman.ihg.sand.ttg.lan:444/components/com_idemauth/simplesamlphp/www/
module.php/saml/sp/saml2-acs.php/idemauth-sp"/>
</ns2:SubjectConfirmation>
</ns2:Subject>
<ns2:Conditions NotBefore="2011-10-24T15:26:37Z"
NotOnOrAfter="2011-10-24T15:28:37Z">
<ns2:AudienceRestriction>
<ns2:Audience>
https://fedman.ihg.sand.ttg.lan:444/
joomla/</ns2:Audience>
</ns2:AudienceRestriction>
</ns2:Conditions>
<ns2:AuthnStatement AuthnInstant="2011-10-24T15:27:07Z"
SessionIndex="luOtJhKJ7jmLECuoH/i3plIR7wc=GeJdVg=="
SessionNotOnOrAfter="2011-10-24T15:28:37Z">
<ns2:AuthnContext>
<ns2:AuthnContextClassRef>urn:oasis:names:tc:SAML:
2.0:ac:classes:Password</ns2:AuthnContextClassRef>
</ns2:AuthnContext>
</ns2:AuthnStatement>
<ns2:AttributeStatement>
<ns2:Attribute Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<ns2:AttributeValue>testuser3</ns2:AttributeValue>
</ns2:Attribute>
<ns2:Attribute Name="urn:oid:2.5.4.42"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<ns2:AttributeValue>Test</ns2:AttributeValue>
</ns2:Attribute>
<ns2:Attribute Name="urn:oid:0.9.2342.19200300.100.1.3"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<ns2:AttributeValue>
test....@ihg-qa.com</
ns2:AttributeValue>
</ns2:Attribute>
<ns2:Attribute Name="urn:oid:2.5.4.4"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<ns2:AttributeValue>User Three</ns2:AttributeValue>
</ns2:Attribute>
</ns2:AttributeStatement>
</ns2:Assertion>
</Response>
Thanks for your help!
Best regards,
Richard
On Oct 24, 9:45 am, Stefano Gargiulo <
rastr...@gmail.com> wrote:
> Hi.
>
> the session mapping is done by the plugin, so configure it in
> plugins->authentication->idemauth. Don't modify the saml assertion subject:
> as you can see in the plugin configuration you have to use saml2.0 assertion
> attributes for the session mapping so you can configure for instance
> edupersonprincipalname to be the username and urn:oid:0.1.2 to be the mail
> (pay attention: joomla requires a valid email here).
>
> PS.
> Due to the joomla structure you cannot have a local user with the same
> username and email of a federated one, so let idemauth create it using a new
> username and email in the assertion (ensure to not have a local user with
> local password with same ids in joomla db)
>
> 2011/10/24 Richard Sand <
richard.s...@ihg.com>
>
>
>
> > Hi all - I am struggling to set up Joomla and idemauth as SP. After I
> > complete the federation flow, I end up on the login page with the
> > message "Username and password do not match or you do not have an
> > account yet.".
>
> > In my assertion I'm sending the username as the subject name, e.g. I
> > send 'rsand' and my Joomla account username is also called 'rsand'. I
> > also put username as an attribute of the assertion, as well as the
> > attributes Full Name and email.
>
> > I think I'm just missing a step here on how to ensure that my IdP is
> > sending the content in the assertion that idemauth needs to establish
> > the user session. Can anyone point me in the right direction?
>
> > Best regards,
>
> > Richard
>
> > --
> > Hai ricevuto questo messaggio in quanto sei iscritto al gruppo
> > Gruppo "idemauth" di Google Gruppi.
> > Per mandare un messaggio a questo gruppo, invia una email a
> >
idemaut...@googlegroups.com
> > Per annullare l'iscrizione a questo gruppo, invia un'email a
> >
idemauth-user...@googlegroups.com
> > Per maggiori opzioni, visita questo gruppo all'indirizzo
> >
http://groups.google.it/group/idemauth-users?hl=it
>
> > Download idemauth:
http://dev.garr.it/idemauth
> > File a bug:
http://code.google.com/p/idemauth/- Hide quoted text -
>
> - Show quoted text -