cosign wiki:CosignCGIs

From cosign wiki

(Difference between revisions)
Jump to: navigation, search
(eitupoyp)
Current revision (12:42, 21 September 2010) (view source)
(Reverting spam yet again.)
 
(60 intermediate revisions not shown.)
Line 1: Line 1:
-
Very nice site!Hello!
+
=Cosign CGIs=
-
<a href="http://angervillemusic.com/#7324">adova health insurance</a> ,Hello!
+
Cosign has two CGIs: ''cosign.cgi'' and ''logout''.
-
<a href="http://connell-tech.com/#1527">cialis</a> ,Hello!
+
 
-
<a href="http://enlightening2007.org/#1908">generic cialis</a> ,Hello!
+
== cosign.cgi ==
-
<a href="http://approvedmedonline.com/cialis-soft-kaufen.html">cialis soft kaufen</a> ,Hello!
+
cosign.cgi, the "login" CGI, is responsible for logging users into and out of the central Cosign server. It is also responsible for registering each service a user logs into; this action ties the user's central login cookie to their session on individual application servers, such as a web mail client, web directory client, or CourseTools environment. The prototype CGI was built to use Kerberos V/GSSAPI to authenticate the user. Guest accounts via Cosign Friend and a MySQL database are also supported, as is authentication with Apache's BasicAuth and x.509 certificates. Cosign 2.x supports external authenticators with a new API, which enables the CGI to use an arbitrary login method by calling out to an external program.
-
<a href="http://approvedmedonline.com/kamagra-kaufen.html">kamagra kaufen</a> ,Hello!
+
 
-
<a href="http://approvedmedonline.com/erectalis-kaufen.html">erectalis kaufen</a> ,Hello!
+
The CGI also has the ability to prompt the user to re-enter their password in order to access any service that has registered for re-authentication. This means that before the CGI will '''REGISTER''' a service cookie for a service configured for re-authentication, the user must successfully authenticate again. This is considered more secure and gives a slightly better assurance that users are in fact who they claim to be.
-
<a href="http://approvedmedonline.com/cialis-super-active-kaufen.html">cialis super active kostenlose</a> ,Hello!
+
 
-
<a href="http://approvedmedonline.com/cialis-super-active-kaufen.html">cialis super active pillen</a> ,Hello!
+
 
-
<a href="http://fastrx.net/buy-cymbalta-usa.html">Duloxetine</a> ,Hello!
+
== Logout ==
-
<a href="http://fastrx.net/buy-ponstel-usa.html">Mefenamic Acid</a> ,Hello!
+
The logout CGI is responsible for logging users out of the central cosign server. Once a logout has been verified, the logout CGI clobbers the login cookie by writing a cookie with the value <tt>null</tt> and setting the cookie's expiration date to a time in the past. Since all state is maintained centrally, the user is immediately logged out of all applications visited during the current session, with one notable exception:
-
<a href="http://fastrx.net/buy-voltaren-usa.html">voltaren information</a> ,Hello!
+
 
-
<a href="http://fastrx.net/buy-xylocaine-usa.html">xylocaine information</a> ,Hello!
+
Due to the implementation of data caching in the filters, the most recent application a user has visited will still report the user as being logged in for the duration of cache time (default is 60 seconds). In order to avoid this lag, a local logout script can be run on the application server to expire the local cosign-service cookie. This marks the user as logged out locally and can then redirect the user to the central logout script. After the logout has been verified, the user is truly logged out of all Cosign-protected services.
-
<a href="http://fastrx.net/buy-antabuse-usa.html">generic antabuse</a> ,Hello!
+
 
-
<a href="http://roddavisrealty.com/#644">viagra</a> ,Hello!
+
 
-
<a href="http://systemmailfc.com/#7943">viagra</a> ,Hello!
+
== CGI Templates ==
-
<a href="http://approvedmedonline.com/acheter-eriacta-france.html">eriacta m&#233;dicament</a> ,Hello!
+
The templates used by Cosign CGIs fall into two broad categories: ''dynamic'' and ''static''.
-
<a href="http://approvedmedonline.com/acheter-cialis-super-active-france.html">cialis super active comprim&#233;s</a> ,Hello!
+
 
-
<a href="http://approvedmedonline.com/acheter-viagra-super-active-france.html">acheter viagra super active</a> ,Hello!
+
===Dynamic Pages===
-
<a href="http://approvedmedonline.com/acheter-viagra-soft-france.html">acheter viagra soft</a> ,Hello!
+
The tables below list the required fields for dynamically-generated Cosign pages. They are dynamic in that
-
<a href="http://approvedmedonline.com/acheter-silagra-france.html">silagra m&#233;dicament</a> ,Hello!
+
the variable <tt>$l</tt> in the template for reauth.html will be replaced by the CGI with the login name of the currently logged-in user. Fields like <tt>verify</tt> in verify-logout.html are required, but their value can be determined on a per-installation basis.
-
<a href="http://fastrx.net/buy-motrin-usa.html">motrin online</a> ,Hello!
+
 
-
<a href="http://fastrx.net/buy-azulfidine-usa.html">cheap azulfidine</a> ,Hello!
+
<table style="border: 2px solid black; font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; margin: 1.6em 0 1.6em 0;">
-
<a href="http://fastrx.net/buy-asacol-usa.html">asacol online</a> ,Hello!
+
<tr>
-
<a href="http://fastrx.net/buy-naprosyn-usa.html">cheap naprosyn</a> ,Hello!
+
<td width="209" colspan="2" style="font-weight: bold; border: 1px solid black;">Page Name</td>
-
<a href="http://fastrx.net/buy-lotemax-usa.html">generic lotemax</a> ,Hello!
+
<td width="269" colspan="2" style="border: 1px solid black;">login.html</td>
-
<a href="http://killjoymusic.com/#3459">cialis</a> ,Hello!
+
</tr>
-
<a href="http://fastrx.net/buy-zyvox-usa.html">cheap zyvox</a> ,Hello!
+
<tr>
-
<a href="http://fastrx.net/buy-ocuflox-usa.html">buy ocuflox</a> ,Hello!
+
<td width="479" colspan="4" style="border: 1px solid black;">draws the login screen for initial logins using cosign.cgi</td>
-
<a href="http://fastrx.net/buy-acular-usa.html">0.5 5</a> ,Hello!
+
</tr>
-
<a href="http://fastrx.net/buy-dexone-usa.html">dexone information</a> ,Hello!
+
<tr>
-
<a href="http://fastrx.net/buy-vibramycin-usa.html">Doxycycline 100mg</a> ,Hello!
+
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
-
<a href="http://approvedmedonline.com/levitra-uk.html">levitra information</a> ,Hello!
+
<td width="138" style="border: 1px solid black;">post</td>
-
<a href="http://approvedmedonline.com/intagra-uk.html">intagra pills</a> ,Hello!
+
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
-
<a href="http://approvedmedonline.com/viagra-super-active-uk.html">viagra super active cheap</a> ,Hello!
+
<td width="197" style="border: 1px solid black;">/cosign-bin/cosign.cgi</td>
-
<a href="http://approvedmedonline.com/cialis-super-active-uk.html">cialis super active pills</a> ,Hello!
+
</tr>
-
<a href="http://aligatorgroup.com/?p=14">Quitting Smoking</a> ,Hello!
+
<tr>
-
<a href="http://fastrx.net/buy-elavil-usa.html">buy elavil</a> ,Hello!
+
<td width="71" style="border: 1px solid black;">&nbsp;</td>
-
<a href="http://fastrx.net/buy-paxil-usa.html">paxil online</a> ,Hello!
+
<td width="138" style="border: 1px solid black;">&nbsp;</td>
-
<a href="http://fastrx.net/buy-colcrys-usa.html">generic colcrys</a> ,Hello!
+
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
-
<a href="http://fastrx.net/buy-lexapro-usa.html">buy lexapro</a> ,Hello!
+
</tr>
-
<a href="http://fastrx.net/buy-diflucan-usa.html">diflucan online</a> ,Hello!
+
<tr>
-
<a href="http://approvedmedonline.com/buy-vigora-usa.html">vigora information</a> ,Hello!
+
<td width="71" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Value</td>
-
<a href="http://approvedmedonline.com/buy-tadacip-usa.html">tadacip cheap</a> ,Hello!
+
<td width="138" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Form Field Name</td>
-
<a href="http://approvedmedonline.com/buy-erectalis-usa.html">erectalis information</a> ,Hello!
+
<td width="269" colspan="2" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Description</td>
-
<a href="http://approvedmedonline.com/buy-suhagra-usa.html">suhagra buy</a> ,Hello!
+
</tr>
-
<a href="http://cechurchgahanna.com/#3470">ab workouts</a> ,Hello!
+
<tr>
-
<a href="http://ctvilanova.org/#9929">satellite tv</a> ,Hello!
+
<td width="71" style="border: 1px solid black;">$t</td>
-
<a href="http://directfloral.net/#217">viagra</a> ,Hello!
+
<td width="138" style="border: 1px solid black;">&nbsp;</td>
-
<a href="http://dzesire.net/#7123">viagra</a> ,Hello!
+
<td width="269" colspan="2" style="border: 1px solid black;">the page title, e.g. CoSign: $t</td>
-
<a href="http://fastrx.net/buy-rheumatrex-usa.html">buy rheumatrex</a> ,Hello!
+
</tr>
-
<a href="http://fastrx.net/buy-diovan-usa.html">diovan information</a> ,Hello!
+
<tr>
-
<a href="http://fastrx.net/buy-femara-usa.html">Letrozole 2.5mg</a> ,Hello!
+
<td width="71" style="border: 1px solid black;">$r</td>
-
<a href="http://fastrx.net/buy-capoten-usa.html">buy capoten</a> ,Hello!
+
<td width="138" style="border: 1px solid black;">ref</td>
-
<a href="http://fastrx.net/buy-ventolin-usa.html">generic ventolin</a> ,Hello!
+
<td width="269" colspan="2" style="border: 1px solid black;">URL to redirect upon successful login</td>
-
<a href="http://beach-asia.com/#4921">cialis</a> ,Hello!
+
</tr>
-
<a href="http://blacknbluegrass.com/#4484">cialis</a> ,Hello!
+
<tr>
-
<a href="http://bpghmag.com/#8858">top secret recipe</a> ,Hello!
+
<td width="71" style="border: 1px solid black;">$c</td>
-
<a href="http://fastrx.net/buy-capoten-usa.html">capoten information</a> ,Hello!
+
<td width="138" style="border: 1px solid black;">service</td>
-
<a href="http://fastrx.net/buy-frumil-usa.html">frumil online</a> ,
+
<td width="269" colspan="2" style="border: 1px solid black;">the service cookie received on the
 +
query string</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$f</td>
 +
<td width="138" style="border: 1px solid black;">required</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">required factors from filter via query string</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$d</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">required factors already satisfied via CHECK</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$l</td>
 +
<td width="138" style="border: 1px solid black;">login</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the user id of the person attempting to
 +
login</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">password</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">field for user to enter their password</td>
 +
</tr>
 +
</table>
 +
<table style="border: 2px solid black; font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; margin: 1.6em 0 1.6em 0;">
 +
<tr>
 +
<td width="209" colspan="2" style="font-weight: bold; border: 1px solid black;">Page Name</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">error.html</td>
 +
</tr>
 +
<tr>
 +
<td width="479" colspan="4" style="border: 1px solid black;">reports any non-retryable errors from cosign.cgi</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
 +
<td width="138">n/a</td>
 +
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
 +
<td width="197">n/a</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Value</td>
 +
<td width="138" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Form Field Name</td>
 +
<td width="269" colspan="2" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Description</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$t</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the page title, e.g. CoSign: $t</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$e</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">field to print relevant error message</td>
 +
</tr>
 +
</table>
 +
<table style="border: 2px solid black; font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; margin: 1.6em 0 1.6em 0;">
 +
<tr>
 +
<td width="209" colspan="2" style="font-weight: bold; border: 1px solid black;">Page Name</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">login_error.html</td>
 +
</tr>
 +
<tr>
 +
<td width="479" colspan="4" style="border: 1px solid black;">draws login screen when a retryable error is encountered
 +
by cosign.cgi</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
 +
<td width="138" style="border: 1px solid black;">post</td>
 +
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
 +
<td width="197">/cosign-bin/cosign.cgi</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Value</td>
 +
<td width="138" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Form Field Name</td>
 +
<td width="269" colspan="2" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Description</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$t</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the page title, e.g. CoSign: $t</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$r</td>
 +
<td width="138" style="border: 1px solid black;">ref</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">URL to redirect upon successful login</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$c</td>
 +
<td width="138" style="border: 1px solid black;">service</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the service cookie received on the
 +
query string</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$f</td>
 +
<td width="138" style="border: 1px solid black;">required</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">required factors from filter via query string</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$d</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">required factors already satisfied via CHECK</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$l</td>
 +
<td width="138" style="border: 1px solid black;">login</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the user id of the person attempting to
 +
login</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">password</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$e</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">field to print relevant error message</td>
 +
</tr>
 +
</table>
 +
<table style="border: 2px solid black; font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; margin: 1.6em 0 1.6em 0;">
 +
<tr>
 +
<td width="209" colspan="2" style="font-weight: bold; border: 1px solid black;">Page Name</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">verify-logout.html</td>
 +
</tr>
 +
<tr>
 +
<td width="479" colspan="4" style="border: 1px solid black;">draws logout confirmation screen</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
 +
<td width="138" style="border: 1px solid black;">post</td>
 +
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
 +
<td width="197">/cosign-bin/logout</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Value</td>
 +
<td width="138" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Form Field Name</td>
 +
<td width="269" colspan="2" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Description</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$t</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the page title, e.g. CoSign: $t</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$u</td>
 +
<td width="138" style="border: 1px solid black;">url</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">URL to redirect upon successful logout</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">Logout</td>
 +
<td width="138" style="border: 1px solid black;">verify</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">submit button</td>
 +
</tr>
 +
</table>
 +
<table style="border: 2px solid black; font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; margin: 1.6em 0 1.6em 0;">
 +
<tr>
 +
<td width="209" colspan="2" style="font-weight: bold; border: 1px solid black;">Page Name</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">reauth.html</td>
 +
</tr>
 +
<tr>
 +
<td width="479" colspan="4" style="border: 1px solid black;">draws login screen for re-authentication</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
 +
<td width="138" style="border: 1px solid black;">post</td>
 +
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
 +
<td width="197">/cosign-bin/cosign.cgi</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black;">Method</td>
 +
<td width="138" style="border: 1px solid black;">post</td>
 +
<td width="72" style="font-weight: bold; border: 1px solid black;">Action</td>
 +
<td width="197" style="border: 1px solid black;">/cosign-bin/logout</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">&nbsp;</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Value</td>
 +
<td width="138" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Form Field Name</td>
 +
<td width="269" colspan="2" style="font-weight: bold; border: 1px solid black; border-width: 2px 1px 2px 1px;">Description</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$t</td>
 +
<td width="138" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the page title, e.g. CoSign: $t</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$r</td>
 +
<td width="138" style="border: 1px solid black;">ref</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">URL to redirect upon successful login</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$r</td>
 +
<td width="138" style="border: 1px solid black;">url</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">URL to redirect upon successful logout</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$c</td>
 +
<td width="138" style="border: 1px solid black;">service</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the service cookie received on the
 +
query string</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$f</td>
 +
<td width="138" style="border: 1px solid black;">required</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">required factors from cgi’s reauth config</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">$l</td>
 +
<td width="138" style="border: 1px solid black;">login</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">the user id of the person attempting to
 +
login</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">&nbsp;</td>
 +
<td width="138" style="border: 1px solid black;">password</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">field for user to enter their password</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">true</td>
 +
<td width="138" style="border: 1px solid black;">reauth</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">flag for CGI</td>
 +
</tr>
 +
<tr>
 +
<td width="71" style="border: 1px solid black;">true</td>
 +
<td width="138" style="border: 1px solid black;">verify</td>
 +
<td width="269" colspan="2" style="border: 1px solid black;">flag for CGI</td>
 +
</tr>
 +
</table>
 +
 
 +
===Static Pages===
 +
The following pages are required by cosign.cgi but have no dynamically-generated content:<br/>
 +
* '''post_error.html''' – The filter will redirect users to this page should a <tt>REGISTER</tt> be required during a <tt>POST</tt>. Cosign does not currently support <tt>REGISTER</tt>ing through a <tt>POST</tt>, and as such, a user’s data would be lost. Instead, the user sees a splash page that tells them that their changes were not saved, informs them of ways to avoid the problem in the future, and gives a link to the login page.<br/>
 +
* '''looping.html''' – The cosign.cgi CGI redirects a user to this page when a browser loop is detected. These are caused by ill-configured filters or badly-behaving browsers. This page has some helpful text to inform the user of possible causes of the loop and how to contact support staff.<br/>
 +
* '''/services/''' – By default, a successful login with no referrer destination URL will be redirected to https://weblogin.example.com/services/. This is called the “service menu” and it is an ideal jumping-off point for listing your institution’s Cosign-protected services.  
 +
 
 +
 
 +
== More information: ==
 +
 
 +
[[Cosign_Wiki:SSO_Scheme|SSO Overview]]
 +
 
 +
[[Cosign_Wiki:CosignCookies|Cookies]]
 +
 
 +
[[Cosign_Wiki:CosignFilter|Filter]]
 +
 
 +
[[Cosign_Wiki:CosignDaemons|Daemons]]
 +
 
 +
 
 +
 
 +
--[[User:Jd@bnl.gov|John]] 16:50, 14 November 2006 (EST)

Current revision

Contents

Cosign CGIs

Cosign has two CGIs: cosign.cgi and logout.

cosign.cgi

cosign.cgi, the "login" CGI, is responsible for logging users into and out of the central Cosign server. It is also responsible for registering each service a user logs into; this action ties the user's central login cookie to their session on individual application servers, such as a web mail client, web directory client, or CourseTools environment. The prototype CGI was built to use Kerberos V/GSSAPI to authenticate the user. Guest accounts via Cosign Friend and a MySQL database are also supported, as is authentication with Apache's BasicAuth and x.509 certificates. Cosign 2.x supports external authenticators with a new API, which enables the CGI to use an arbitrary login method by calling out to an external program.

The CGI also has the ability to prompt the user to re-enter their password in order to access any service that has registered for re-authentication. This means that before the CGI will REGISTER a service cookie for a service configured for re-authentication, the user must successfully authenticate again. This is considered more secure and gives a slightly better assurance that users are in fact who they claim to be.


Logout

The logout CGI is responsible for logging users out of the central cosign server. Once a logout has been verified, the logout CGI clobbers the login cookie by writing a cookie with the value null and setting the cookie's expiration date to a time in the past. Since all state is maintained centrally, the user is immediately logged out of all applications visited during the current session, with one notable exception:

Due to the implementation of data caching in the filters, the most recent application a user has visited will still report the user as being logged in for the duration of cache time (default is 60 seconds). In order to avoid this lag, a local logout script can be run on the application server to expire the local cosign-service cookie. This marks the user as logged out locally and can then redirect the user to the central logout script. After the logout has been verified, the user is truly logged out of all Cosign-protected services.


CGI Templates

The templates used by Cosign CGIs fall into two broad categories: dynamic and static.

Dynamic Pages

The tables below list the required fields for dynamically-generated Cosign pages. They are dynamic in that the variable $l in the template for reauth.html will be replaced by the CGI with the login name of the currently logged-in user. Fields like verify in verify-logout.html are required, but their value can be determined on a per-installation basis.

Page Name login.html
draws the login screen for initial logins using cosign.cgi
Method post Action /cosign-bin/cosign.cgi
     
Value Form Field Name Description
$t   the page title, e.g. CoSign: $t
$r ref URL to redirect upon successful login
$c service the service cookie received on the query string
$f required required factors from filter via query string
$d   required factors already satisfied via CHECK
$l login the user id of the person attempting to login
  password field for user to enter their password
Page Name error.html
reports any non-retryable errors from cosign.cgi
Method n/a Action n/a
     
Value Form Field Name Description
$t   the page title, e.g. CoSign: $t
$e   field to print relevant error message
Page Name login_error.html
draws login screen when a retryable error is encountered by cosign.cgi
Method post Action /cosign-bin/cosign.cgi
     
Value Form Field Name Description
$t   the page title, e.g. CoSign: $t
$r ref URL to redirect upon successful login
$c service the service cookie received on the query string
$f required required factors from filter via query string
$d   required factors already satisfied via CHECK
$l login the user id of the person attempting to login
  password  
$e   field to print relevant error message
Page Name verify-logout.html
draws logout confirmation screen
Method post Action /cosign-bin/logout
     
Value Form Field Name Description
$t   the page title, e.g. CoSign: $t
$u url URL to redirect upon successful logout
Logout verify submit button
Page Name reauth.html
draws login screen for re-authentication
Method post Action /cosign-bin/cosign.cgi
Method post Action /cosign-bin/logout
     
Value Form Field Name Description
$t   the page title, e.g. CoSign: $t
$r ref URL to redirect upon successful login
$r url URL to redirect upon successful logout
$c service the service cookie received on the query string
$f required required factors from cgi’s reauth config
$l login the user id of the person attempting to login
  password field for user to enter their password
true reauth flag for CGI
true verify flag for CGI

Static Pages

The following pages are required by cosign.cgi but have no dynamically-generated content:

  • post_error.html – The filter will redirect users to this page should a REGISTER be required during a POST. Cosign does not currently support REGISTERing through a POST, and as such, a user’s data would be lost. Instead, the user sees a splash page that tells them that their changes were not saved, informs them of ways to avoid the problem in the future, and gives a link to the login page.
  • looping.html – The cosign.cgi CGI redirects a user to this page when a browser loop is detected. These are caused by ill-configured filters or badly-behaving browsers. This page has some helpful text to inform the user of possible causes of the loop and how to contact support staff.
  • /services/ – By default, a successful login with no referrer destination URL will be redirected to https://weblogin.example.com/services/. This is called the “service menu” and it is an ideal jumping-off point for listing your institution’s Cosign-protected services.


More information:

SSO Overview

Cookies

Filter

Daemons


--John 16:50, 14 November 2006 (EST)

Personal tools