77 lines
2.6 KiB
Plaintext
77 lines
2.6 KiB
Plaintext
|
#*
|
||
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||
|
(the "License"); you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||
|
|
||
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||
|
language governing rights and limitations under the License.
|
||
|
|
||
|
The Original Code is the Venice Web Communities System.
|
||
|
|
||
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||
|
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||
|
|
||
|
Contributor(s):
|
||
|
*#
|
||
|
#*
|
||
|
Parameters:
|
||
|
menu = Menu to display along the top (may be null)
|
||
|
provider_data = List of identity provider data.
|
||
|
target = Target page attribute.
|
||
|
*#
|
||
|
#set( $et = "#encodeURL( $target )" )
|
||
|
#if( $menu )
|
||
|
#render( $menu )
|
||
|
#end
|
||
|
#header1( "Identity Federations" )
|
||
|
<p><b>This site can use a federated identity from any of the following identity providers:</b></p>
|
||
|
<div align="center"><table border="1">
|
||
|
<tr>
|
||
|
<th class="content"><b>Provider ID</b></th>
|
||
|
<th class="content"><b>Logged in at:</b></th>
|
||
|
<th class="content"><b>Session expires:</b></th>
|
||
|
<th class="content"><b>Federated</b></th>
|
||
|
<th class="content"> </th>
|
||
|
</tr>
|
||
|
#foreach( $p in $provider_data )
|
||
|
#set( $ep = "#encodeURL( $p.provider )" )
|
||
|
<tr>
|
||
|
<td class="content">#encodeHTML( $p.provider )</td>
|
||
|
<td class="content">
|
||
|
#if( $p.logged_in )
|
||
|
#formatDate( $p.login_time )
|
||
|
#else
|
||
|
|
||
|
#end
|
||
|
</td>
|
||
|
<td class="content">
|
||
|
#if( $p.logged_in && $p.expire_time )
|
||
|
#formatDate( $p.expire_time )
|
||
|
#else
|
||
|
|
||
|
#end
|
||
|
</td>
|
||
|
<td class="content">
|
||
|
#if( $p.federated )
|
||
|
<b>Yes</b>
|
||
|
#else
|
||
|
No
|
||
|
#end
|
||
|
</td>
|
||
|
<td class="content">
|
||
|
#if( $p.federated )
|
||
|
<a href="#formatURL( "SERVLET" "sourceid/defederate.js.vs?provider=$ep&tgt=$et" )">#button( "IMAGE" "terminate" )</a>
|
||
|
#else
|
||
|
<a href="#formatURL( "SERVLET" "sourceid/federate.js.vs?provider=$ep&tgt=$et" )">#button( "IMAGE" "federate" )</a>
|
||
|
#end
|
||
|
#if( $p.logged_in )
|
||
|
|
||
|
<a href="#formatURL( "SERVLET" "sourceid/logout_sso.js.vs?provider=$ep&tgt=$et" )">#button( "IMAGE" "logout" )</a>
|
||
|
#end
|
||
|
</td>
|
||
|
</tr>
|
||
|
#end
|
||
|
</table></div>
|