Skip to content

Commit

Permalink
Implement -1 option
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Dec 12, 2016
1 parent 3ad2746 commit 07f126f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/probe_saml_idp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ display_help () {
Given a single identifier, assumed to be an IdP entityID, probe
all browser-facing SSO endpoints in IdP metadata.
Usage: ${0##*/} [-hvq] [-t CONNECT_TIME [-m MAX_TIME]] [-r MAX_REDIRS] ID
Usage: ${0##*/} [-hvq] [-1] [-t CONNECT_TIME [-m MAX_TIME]] [-r MAX_REDIRS] ID
Options:
-h Display this message
-v Write verbose messages to stdout
-q Run quietly (i.e., write no messages to stdout)
-1 Probe SAML1 endpoint(s) in addition to SAML2
-t Allowed time (in secs) to connect to the host
-m Maximum time (in secs) of a complete probe
-r Maximum number of HTTP redirects followed
Expand Down Expand Up @@ -121,10 +122,10 @@ config_file_default="${script_bin}/.config"
#######################################################################

help_mode=false; quiet_mode=false; verbose_mode=false
saml1_disabled=true # TODO: implement -1 option
saml1_disabled=true
local_opts=; connect_timeout=; max_time=; max_redirs=
curl_opts=
while getopts ":hqvt:m:r:" opt; do
while getopts ":hqv1t:m:r:" opt; do
case $opt in
h)
help_mode=true
Expand All @@ -134,6 +135,9 @@ while getopts ":hqvt:m:r:" opt; do
verbose_mode=false
#local_opts="$local_opts -$opt"
;;
1)
saml1_disabled=false
;;
v)
quiet_mode=false
verbose_mode=true
Expand Down

0 comments on commit 07f126f

Please sign in to comment.