Skip to content

Commit

Permalink
Test for IdP entityID
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Dec 20, 2016
1 parent b504000 commit 4f9c789
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/probe_saml_idp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ if [ "$exit_status" -ne 0 ]; then
exit 3
fi

# short-circuit if this is not an IdP
if ! echo "$entityDescriptor" | $_GREP -Fq 'IDPSSODescriptor '; then
echo "ERROR: $script_name: entity is not an IdP: $entityID" >&2
exit 3
fi

# extract the registrar ID from the entity descriptor
registrarID=$( echo "$entityDescriptor" \
| $_GREP -F -m 1 ' registrationAuthority=' \
Expand Down

0 comments on commit 4f9c789

Please sign in to comment.