venice-dynamo-rewrite/venice-data-sso/idp/velocity/sourceid/federations.vm
2003-06-18 04:23:20 +00:00

65 lines
2.0 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)
target = Target page attribute.
provider_data = List of information about individual providers.
*#
#set( $et = "#encodeURL( $target )" )
#if( $menu )
#render( $menu )
#end
#header1( "Identity Federations" )
<p><b>This site can federate its identity to any of the following Service Providers:</b></p>
<div align="center"><table border="1">
<tr>
<th class="content"><b>Provider ID</b></th>
<th class="content"><b>Authenticated?</b></th>
<th class="content"><b>Federated?</b></th>
<th class="content">&nbsp;</th>
</tr>
#foreach( $p in $provider_data )
#set( $ep = "#encodeURL( $p.provider )" )
<tr>
<td>#encodeHTML( $p.provider )</td>
<td>
#if( $p.auth )
<b>Yes</b>
#else
No
#end
</td>
<td>
#if( $p.federated )
<b>Yes</b>
#else
No
#end
</td>
<td>
#if( $p.federated )
<a href="#formatURL( "SERVLET" "sourceid/defederate.js.vs?p=$ep&tgt=$et" )">#button( "IMAGE" "terminate" )</a>
#else
(Visit the service provider's site to federate)
#end
</td>
</tr>
#end
</table></div>