This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Construct a request URL per the MDQ Protocol specification | |
# See: https://github.com/iay/md-query | |
# To construct a reference to ALL entities served by the | |
# metadata query server, simply omit the second argument | |
construct_mdq_url () { | |
# construct_mdq_url <base_url> <url_encoded_id> | |
# make sure there are one or two command-line arguments | |
if [ $# -lt 1 -o $# -gt 2 ]; then | |
echo "ERROR: $FUNCNAME: incorrect number of arguments: $# (1 or 2 required)" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################################### | |
# Inspect a SAML metadata file and report its characteristics. | |
# | |
# Usage: md_inspect.sh [-vs] [MD_FILE] | |
# | |
# Optionally takes the path to the metadata file as a command-line | |
# parameter. If none is given, takes its input from stdin instead. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DEPRECATED: Use mdq_url.sh instead | |
########################################################### | |
# Fetch SAML metadata via the Metadata Query Protocol | |
# | |
# usage: md_query.sh [-tvq] [IDENTIFIER] | |
# | |
# where the -t option simply outputs the computed request URL (without |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################################### | |
# Inspect a SAML metadata file, iterate over the entity descriptors | |
# in the file, and pass each entity descriptor through a filter that | |
# produces a list of entity attributes in metadata. | |
# | |
# Usage: filter_mdattrs.sh [-v] [MD_FILE] | |
# | |
# Optionally takes the path to the metadata file as a command-line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################################### | |
# Retrieve a web resource via HTTP Conditional GET [RFC 7232] and | |
# output the resource on stdout. Cache the web resource and consult | |
# the cache on subsequent requests for the same resource. By default, | |
# return the cached resource (if it exists) if and only if the web | |
# server responds with 304 Not Modified. | |
# | |
# Usage: cget.sh [-vfcH] URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################################### | |
# Compute the request URL for the given IDENTIFIER as specified by | |
# the Metadata Query Protocol | |
# | |
# usage: mdq_url.sh [-vq] IDENTIFIER | |
# | |
# The -v option causes the script to produce verbose output while | |
# the -q option causes the script to be silent. The options are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################################### | |
# Produce a list of all entityIDs in the given SAML metadata file. | |
# | |
# Usage: eids.sh [FILE] | |
# | |
# Optionally takes the path to the metadata file as a command-line | |
# parameter. If none is given, takes its input from stdin. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
extract_IdP_entityIDs.xsl | |
XSL stylesheet that takes a SAML 2.0 metadata file and extracts | |
the IdP entityIDs as plain text. | |
--> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
extract_all_entityIDs.xsl | |
XSL stylesheet that takes a SAML 2.0 metadata file and extracts | |
all entityIDs (both IdP and SP) as plain text. | |
--> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
extract_RandS_SP_entityIDs.xsl | |
XSL stylesheet that takes a SAML 2.0 metadata file and extracts | |
the Research & Scholarship SP entityIDs as plain text. | |
See: http://refeds.org/category/research-and-scholarship | |
--> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
OlderNewer