Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Dec 10, 2016
2 parents 74875b5 + 35a6b05 commit 35fe983
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A given target directory will be created if one doesn't already exist. In any ca
```Shell
$ ls -1 $BIN_DIR
cget.sh
probe_saml_idp.sh

$ ls -1 $LIB_DIR
command_paths.sh
Expand All @@ -33,10 +34,13 @@ compatible_mktemp.sh
extract_entity.xsl
http_tools.sh
md_tools.sh
saml_tools.sh
```

## Overview

### ``cget.sh``

Bash script ``cget.sh`` retrieves and caches HTTP resources on disk. A previously cached resource is retrieved via HTTP Conditional GET [RFC 7232]. If the web server responds with HTTP 200 OK, the resource is cached and written to stdout. If the web server responds with 304 Not Modified, the cached resource is output instead.

To illustrate, define a couple of HTTP resources and a cache:
Expand Down Expand Up @@ -105,6 +109,20 @@ See the inline help file for details:
$ $BIN_DIR/cget.sh -h
```

### ``probe_saml_idp.sh``

```Shell
$ export SAML2_SP_ENTITY_ID=https://fm.incommon.org/sp
$ export SAML2_SP_ACS_URL=https://service1.internet2.edu/Shibboleth.sso/SAML2/POST
$ export SAML2_SP_ACS_BINDING=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
$ mdq_base_url=http://mdq-beta.incommon.org/global
$ id=urn:mace:incommon:internet2.edu
$ $BIN_DIR/probe_saml_idp.sh -u $mdq_base_url $id
0 redirects:3;response:200;dns:0.005;tcp:0.031;ssl:0.202;total:0.543 https://origin.internet2.edu/idp/profile/SAML2/Redirect/SSO urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect urn:mace:incommon:internet2.edu https://incommon.org
0 redirects:3;response:200;dns:0.005;tcp:0.033;ssl:0.195;total:0.519 https://origin.internet2.edu/idp/profile/SAML2/POST/SSO urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST urn:mace:incommon:internet2.edu https://incommon.org
0 redirects:3;response:200;dns:0.005;tcp:0.031;ssl:0.191;total:0.508 https://origin.internet2.edu/idp/profile/SAML2/POST-SimpleSign/SSO urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign urn:mace:incommon:internet2.edu https://incommon.org
```

## Compatibility

Shell scripts are compatible with both GNU/Linux and Mac OS. XSLT scripts are written in XSLT 1.0.
Expand Down

0 comments on commit 35fe983

Please sign in to comment.