...
Historically, InCommon assigned an URN to all new IdPs, based on the IdP's primary DNS domain name:
Code Block | ||||
---|---|---|---|---|
| ||||
<EntityDescriptor entityID="urn:mace:incommon:example.edu"> |
However, InCommon no longer issues URNs to IdPs and instead strongly encourages the use of URLs instead. Type the following command commands to produce a list of legacy URNs lists of URN-based entityIDs in InCommon metadata:
Code Block | ||||
---|---|---|---|---|
| ||||
# listfetch theInCommon URNs in metadata $ curl --silent MD_LOCATION=http://md.incommon.org/InCommon/InCommon-metadata.xml $ MD_PATH=/tmp/md/InCommon-metadata.xml $ curl --silent --dump-header /dev/tty $MD_LOCATION > $MD_PATH HTTP/1.1 200 OK Date: Fri, 12 Feb 2016 12:34:30 GMT Server: Apache Last-Modified: Thu, 11 Feb 2016 20:27:42 GMT ETag: "110328-10843d5-52b8461eaab80" Accept-Ranges: bytes Content-Length: 17318869 Connection: close Content-Type: application/samlmetadata+xml # count the legacy URN-based entityIDs issued to InCommon IdPs $ cat $MD_PATH \ | grep -FE ' entityID="urn:mace:incommon:[^:"]+"' \ | sed -e 's/^.* entityID="\(urn:mace:incommon:[^:"]*\)".*$/\1/' \ | wc -l 75 # count all the URN-based entityIDs in InCommon metadata $ cat $MD_PATH \ | grep -F ' entityID="urn:' \ | sed -e 's/^.* entityID="\([^"]*\)".*$/\1/' \ | wc -l 76 |
Simply omit the last command in the pipe (wc
) to produce the actual list, or better yet, view a pre-computed list of URN-based entityIDs in InCommon metadata.