<!-- This is a copy of our InCommon registration.
     They use their own generator to keep the formats consistent.
     Our actual metadata may be formatted differently. 
-->
<EntityDescriptor 
        xmlns="urn:oasis:names:tc:SAML:2.0:metadata" 
        xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
        xmlns:shibmd="urn:mace:shibboleth:metadata:1.0" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute"
        xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
        xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
        xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi"
        xmlns:remd="http://refeds.org/metadata"
        entityID="urn:mace:incommon:ncsu.edu">

  <!-- R and S extension only found in InCommon -->
  <Extensions>
    <mdrpi:RegistrationInfo registrationAuthority="https://incommon.org"/>
    <mdattr:EntityAttributes>
      <saml:Attribute 
            Name="http://macedir.org/entity-category-support" 
            NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml:AttributeValue>http://refeds.org/category/research-and-scholarship</saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute
            Name="http://macedir.org/entity-category"
            NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
        <saml:AttributeValue>http://id.incommon.org/category/registered-by-incommon</saml:AttributeValue>
      </saml:Attribute>
    </mdattr:EntityAttributes>
  </Extensions>

  <IDPSSODescriptor
          errorURL="https://help.oit.ncsu.edu/"
          protocolSupportEnumeration="urn:mace:shibboleth:1.0 urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:2.0:protocol">
    <Extensions>
      <shibmd:Scope regexp="false">ncsu.edu</shibmd:Scope>
      <mdui:UIInfo>
        <mdui:DisplayName xml:lang="en">North Carolina State University</mdui:DisplayName>
        <mdui:Description xml:lang="en">Sign in with your NC State UnityID credentials</mdui:Description>
        <mdui:InformationURL xml:lang="en">https://oit.ncsu.edu/campus-it/identity-management/shibboleth/</mdui:InformationURL>
        <mdui:PrivacyStatementURL xml:lang="en">https://www.ncsu.edu/privacy</mdui:PrivacyStatementURL>
        <mdui:Logo height="33" width="195" xml:lang="en">https://docs.shib.ncsu.edu/inc/fed_logo.gif</mdui:Logo>
      </mdui:UIInfo>
    </Extensions>

    <KeyDescriptor use="signing">
      <ds:KeyInfo>
        <ds:X509Data>
          <!-- Serial No. 15698253166706780659, 
               expires on Sun Apr 22 15:43:18 2029 GMT -->
          <ds:X509Certificate>
MIIDFDCCAfygAwIBAgIJANnbZhULtWnzMA0GCSqGSIb3DQEBCwUAMBgxFjAUBgNV
BAMTDXNoaWIubmNzdS5lZHUwHhcNMTkwMjA0MTU0MzE4WhcNMjkwNDIyMTU0MzE4
WjAYMRYwFAYDVQQDEw1zaGliLm5jc3UuZWR1MIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA2ECRYthCtisXOcrvE2zeDCIiVL0N1VaE5rb4UUx0TgRfpr96
vQ90RXi6Y9uQOwypmAETI1bwENvZeCYOwwQUodHFaZcwxzMw4uI7VAoZbg+6KSs9
hbQjTt/kia9HVsWiuRigJiePrI1/wW6turQjAHkXWbICf5Bsry6DFJHYgXTWUr+9
zv+USNs9VLkXuTNUzrTNoClrlPjg/mDEvsqOWnWE+FMkaqCNdDJniB4FjT2UYxRT
cVzH0qehBNghQx98d57T1Z4PlY/fsHrstjwDZTDtb6F460OeN9+qZrLfhZaBps6u
BiAIjOmp/FEDQj7rq15ZkW4kQ9sBNV2hAxC3UQIDAQABo2EwXzAdBgNVHQ4EFgQU
zIC2jQG7AqT0BiAZ05vVkn39Y9cwPgYDVR0RBDcwNYINc2hpYi5uY3N1LmVkdYYk
aHR0cHM6Ly9zaGliLm5jc3UuZWR1L2lkcC9zaGliYm9sZXRoMA0GCSqGSIb3DQEB
CwUAA4IBAQBdMbGJqNCN8KYlbTNcrHiwRFlJk4r91fUs9akrGbcf/VZowWEaL41E
gfeyTc4cXh1AF69xz6XtwmxWuO4P6aE+SNDAHKAGAaL8QBxJYhWYYnKNTU12BYLu
4P6qU6cIBOyLnZ2izlzI+2Vc5VE7YvF6caSQ64Qqzv1hbtk7Gr/qC5zLY0PVHph0
mw2nxr6nPelfSSpJtE9+YtAVjeXYKyRuuh1htE4HCEW8CEhdfhsoeJ107Aq1UE5B
leF8As/ScpR5p4wIW9JzjKdfeyk8y6iWHBHAvH2YhIsrhEqO0B43urUpXftn3AGo
1//03QM/Ewk1v6DNtq4T3VGJJucJkuxw
          </ds:X509Certificate>
        </ds:X509Data>
      </ds:KeyInfo>
    </KeyDescriptor>

    <ArtifactResolutionService
            Binding="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"
            Location="https://shib.ncsu.edu:8443/idp/profile/SAML1/SOAP/ArtifactResolution"
            index="1"/>
    <ArtifactResolutionService
            Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"
            Location="https://shib.ncsu.edu:8443/idp/profile/SAML2/SOAP/ArtifactResolution"
            index="2"/>

    <SingleSignOnService 
            Binding="urn:mace:shibboleth:1.0:profiles:AuthnRequest"
            Location="https://shib.ncsu.edu/idp/profile/Shibboleth/SSO"/>
    <SingleSignOnService
            Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
            Location="https://shib.ncsu.edu/idp/profile/SAML2/POST/SSO"/>
    <SingleSignOnService
            Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign"
            Location="https://shib.ncsu.edu/idp/profile/SAML2/POST-SimpleSign/SSO"/>
    <SingleSignOnService
            Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
            Location="https://shib.ncsu.edu/idp/profile/SAML2/Redirect/SSO"/>
  </IDPSSODescriptor>

  <AttributeAuthorityDescriptor 
          protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:2.0:protocol">
    <Extensions>
      <shibmd:Scope regexp="false">ncsu.edu</shibmd:Scope>
    </Extensions>

    <KeyDescriptor use="signing">
      <ds:KeyInfo>
        <ds:X509Data>
          <!-- Serial No. 15698253166706780659, 
               expires on Sun Apr 22 15:43:18 2029 GMT -->
          <ds:X509Certificate>
MIIDFDCCAfygAwIBAgIJANnbZhULtWnzMA0GCSqGSIb3DQEBCwUAMBgxFjAUBgNV
BAMTDXNoaWIubmNzdS5lZHUwHhcNMTkwMjA0MTU0MzE4WhcNMjkwNDIyMTU0MzE4
WjAYMRYwFAYDVQQDEw1zaGliLm5jc3UuZWR1MIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA2ECRYthCtisXOcrvE2zeDCIiVL0N1VaE5rb4UUx0TgRfpr96
vQ90RXi6Y9uQOwypmAETI1bwENvZeCYOwwQUodHFaZcwxzMw4uI7VAoZbg+6KSs9
hbQjTt/kia9HVsWiuRigJiePrI1/wW6turQjAHkXWbICf5Bsry6DFJHYgXTWUr+9
zv+USNs9VLkXuTNUzrTNoClrlPjg/mDEvsqOWnWE+FMkaqCNdDJniB4FjT2UYxRT
cVzH0qehBNghQx98d57T1Z4PlY/fsHrstjwDZTDtb6F460OeN9+qZrLfhZaBps6u
BiAIjOmp/FEDQj7rq15ZkW4kQ9sBNV2hAxC3UQIDAQABo2EwXzAdBgNVHQ4EFgQU
zIC2jQG7AqT0BiAZ05vVkn39Y9cwPgYDVR0RBDcwNYINc2hpYi5uY3N1LmVkdYYk
aHR0cHM6Ly9zaGliLm5jc3UuZWR1L2lkcC9zaGliYm9sZXRoMA0GCSqGSIb3DQEB
CwUAA4IBAQBdMbGJqNCN8KYlbTNcrHiwRFlJk4r91fUs9akrGbcf/VZowWEaL41E
gfeyTc4cXh1AF69xz6XtwmxWuO4P6aE+SNDAHKAGAaL8QBxJYhWYYnKNTU12BYLu
4P6qU6cIBOyLnZ2izlzI+2Vc5VE7YvF6caSQ64Qqzv1hbtk7Gr/qC5zLY0PVHph0
mw2nxr6nPelfSSpJtE9+YtAVjeXYKyRuuh1htE4HCEW8CEhdfhsoeJ107Aq1UE5B
leF8As/ScpR5p4wIW9JzjKdfeyk8y6iWHBHAvH2YhIsrhEqO0B43urUpXftn3AGo
1//03QM/Ewk1v6DNtq4T3VGJJucJkuxw
          </ds:X509Certificate>
        </ds:X509Data>
      </ds:KeyInfo>
    </KeyDescriptor>

    <AttributeService
            Binding="urn:oasis:names:tc:SAML:1.0:bindings:SOAP-binding"
            Location="https://shib.ncsu.edu:8443/idp/profile/SAML1/SOAP/AttributeQuery"/>
    <AttributeService 
            Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"
            Location="https://shib.ncsu.edu:8443/idp/profile/SAML2/SOAP/AttributeQuery"/>

  </AttributeAuthorityDescriptor>

  <Organization>
    <OrganizationName xml:lang="en">North Carolina State University</OrganizationName>
    <OrganizationDisplayName xml:lang="en">North Carolina State University</OrganizationDisplayName>
    <OrganizationURL xml:lang="en">http://www.ncsu.edu/</OrganizationURL>
  </Organization>

  <ContactPerson contactType="technical">
    <GivenName>NC State Shibboleth Support Team</GivenName>
    <EmailAddress>shibboleth-help@ncsu.edu</EmailAddress>
  </ContactPerson>
  <ContactPerson contactType="administrative">
    <GivenName>NC State Shibboleth Support Team</GivenName>
    <EmailAddress>shibboleth-help@ncsu.edu</EmailAddress>
  </ContactPerson>
  <ContactPerson contactType="support">
    <GivenName>NC State Help Desk</GivenName>
    <EmailAddress>help@ncsu.edu</EmailAddress>
  </ContactPerson>
  <ContactPerson contactType="other"
            remd:contactType="http://refeds.org/metadata/contactType/security">
    <GivenName>NC State Security Team</GivenName>
    <EmailAddress>security@ncsu.edu</EmailAddress>
  </ContactPerson>

</EntityDescriptor>
