<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I am utterly confused (nothing new there, but I’ll attempt to explain this one).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a relying-party entry which I believe others have used:<o:p></o:p></p>
<p class="MsoNormal">                                <bean parent="RelyingPartyByName" c:relyingPartyIds="google.com"><o:p></o:p></p>
<p class="MsoNormal">            <property name="profileConfigurations"><o:p></o:p></p>
<p class="MsoNormal">                <list><o:p></o:p></p>
<p class="MsoNormal">                        <bean parent="SAML2.SSO" p:nameIDFormatPrecedence="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" p:encryptAssertions="false" /><o:p></o:p></p>
<p class="MsoNormal">                </list><o:p></o:p></p>
<p class="MsoNormal">            </property><o:p></o:p></p>
<p class="MsoNormal">        </bean><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a request from google in my log which asks for NameID as unspecified:<o:p></o:p></p>
<p class="MsoNormal"><samlp:AuthnRequest<o:p></o:p></p>
<p class="MsoNormal">    AssertionConsumerServiceURL="https://www.google.com/a/hull-college.ac.uk/acs"<o:p></o:p></p>
<p class="MsoNormal">    ID="achibhchkpnnlacecgddfgbpfdallakncgfgofab" IsPassive="false"<o:p></o:p></p>
<p class="MsoNormal">    IssueInstant="2016-04-13T09:39:51Z"<o:p></o:p></p>
<p class="MsoNormal">    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"<o:p></o:p></p>
<p class="MsoNormal">    ProviderName="google.com" Version="2.0" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"><o:p></o:p></p>
<p class="MsoNormal">    <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">google.com</saml:Issuer><o:p></o:p></p>
<p class="MsoNormal">    <samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"/><o:p></o:p></p>
<p class="MsoNormal"></samlp:AuthnRequest><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And google’s own metadata download (taken from the GA admin control panel) which has a weird entityID of
<a href="https://accounts.google.com/o/saml2?idpid=C04au2c47">https://accounts.google.com/o/saml2?idpid=C04au2c47</a><o:p></o:p></p>
<p class="MsoNormal">Which specifies emailAddress as the NameID policy (somewhat contradictory to the request the IdP gets):<o:p></o:p></p>
<p class="MsoNormal"><md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My error log says there is no entry to handle entityID google.com in relying-party:<o:p></o:p></p>
<p class="MsoNormal">2016-04-13 10:39:52,256 - DEBUG [org.opensaml.saml.metadata.resolver.impl.AbstractMetadataResolver:334] - Metadata backing store does not contain any EntityDescriptors with the ID: google.com<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Even editing the metadata file they provide, to the following first line:<o:p></o:p></p>
<p class="MsoNormal"><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="google.com" validUntil="2021-04-12T08:53:16.000Z"><o:p></o:p></p>
<p class="MsoNormal">Doesn’t work.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Dav<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">_________________________________________________<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">Dave Perry<br>
eLearning Technologist, Hull College Group<br>
<br>
Room L34 - Queens Gardens Library<br>
Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG<br>
Extension 2230 / Direct Dial 01482 381930<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">* Need a fast reply? Try
<a href="mailto:elearning@hull-college.ac.uk">elearning@hull-college.ac.uk</a> *<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>

    <div>
      <font color="#999999" size="2">
                <span style="font-family: Arial;"><a href="http://www.hull-college.ac.uk/about-us/stakeholders-newsletter">The Review Newsletter</a></span> </font></div><div><font color="#999999" size="2"><br />
        <font face="Arial">This message is sent in confidence for the addressee </font>
        <span style="font-family: Arial;">only.  It may contain confidential or sensitive </span>
        <span style="font-family: Arial;">information.  The contents are not to be disclosed </span>
        <span style="font-family: Arial;">to anyone other than the addressee.  Unauthorised </span>
        <span style="font-family: Arial;">recipients are requested to preserve this </span>
        <span style="font-family: Arial;">confidentiality and to advise us of any errors in </span>
        <span style="font-family: Arial;">transmission.  Any views expressed in this message </span>
        <span style="font-family: Arial;">are solely the views of the individual and do not </span>
        <span style="font-family: Arial;">represent the views of the College.  Nothing in this </span>
        <span style="font-family: Arial;">message should be construed as creating a contract.</span>
      </font>
    </div>
    <div>
      <font face="Arial" color="#999999" size="2">
        <br />
      </font>
    </div>
    <div>
      <font face="Arial" color="#999999" size="2">Hull College Group owns the email infrastructure, including the contents.</font>
    </div>
    <div>
      <font face="Arial" color="#999999" size="2">
        <br />
      </font>
    </div>
    <div>
      <font face="Arial" size="2" color="#00CC33">Hull College Group is committed to sustainability, please reflect before printing
      this email.</font>
    </div>
    <div>
      <hr />
    </div>



</body>
</html>