Authentication: Difference between revisions
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
= CAS = | = CAS = | ||
The '''Virginia Tech Central Authentication System''' or '''CAS''' is the Virginia Tech deployment of the [[Free software|open source]] [[w:Shibboleth (Internet2)|Shibboleth]] authentication system. Shibboleth can be thought of as an identity provider similar to [[w:OpenID|OpenID]], but more centralized, and thus well-liked by institutions such as universities. | |||
== Scripted Login == | |||
The following is a work in progress. Eventually, the following commands should yield a login. | |||
<pre> | |||
$ curl -s -c cookies https://auth.vt.edu/login?service=https://my.vt.edu/Login | sed -nrf sedconf | xargs curl | |||
</pre> | |||
The <code>sedconf</code> file's contents are below. | |||
<pre> | |||
/name="lt"/s/.*value="([^"]*).*/-d "lt=\1"/p | |||
/name="_eventId"/s/.*value="([^"]*).*/-d "eventId=\1"/p | |||
/name="submit"/s/.*value="(^")*".*/-d "submit=\1"/p | |||
/action="/s/.*action="([^;]*)[^?]*(\??[^"]*).*/--url "https:\/\/auth.vt.edu\1\2"/p | |||
$a -d "username=bob" | |||
$a -d "password=bubba" | |||
$a -c cookies | |||
</pre> | |||
Refer to the [[sed]] and [[curl]] manual pages for details on the various commands that drive this script. | |||
=External Links= | |||
* [https://auth.vt.edu VT CAS] | |||
* [http://www.computing.vt.edu/infrastructure_services/cas/index.html Description of CAS] | |||
[[Category:Infrastructure]] | [[Category:Infrastructure]] | ||
[[Category:Scripts]] | |||
[[Category:Campus computing resources]] | |||