Skip to content

Instantly share code, notes, and snippets.

View jimvanderveen's full-sized avatar

Jim Vanderveen jimvanderveen

View GitHub Profile
@jimvanderveen
jimvanderveen / shibb-cas-get.sh
Created March 25, 2019 14:55 — forked from olberger/shibb-cas-get.sh
Connection to a web app protected via Shibboleth with curl
#!/bin/sh
#set -x
# Usage: shibb-cas-get.sh {username} {password} # If you have any errors try removing the redirects to get more information
# The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method)
DEST=https://myapp.example.com/
SP=https://myapp.example.com/index.php
IDP="https://myidp.example.com/idp/shibboleth&btn_sso=SSOok"