venice-dynamo-rewrite/venice-data-sso/sp/velocity/sourceid/top.vm

60 lines
2.1 KiB
Plaintext
Raw Normal View History

2003-05-19 21:25:31 -06:00
#*
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):
*#
#header1( "Temporary Top Page" )
#if( $logged_in )
<p>You are currently logged in.</p>
<p>This Service Provider can interact with the following Identity Providers:</p>
<table border="1">
<tr>
<td>ProviderID</td>
<td>Authenticated?</td>
<td>Federated?</td>
</tr>
#foreach( $p in $provider_data )
#set( $ep = "#encodeURL( $p.provider )" )
<tr>
<td>$p.provider</td>
<td>
#if( $p.logged_in )
Logged in at: #formatDate( $p.login_time )
#if( $p.expire_time )
<br />Session will expire at: #formatDate( $p.expire_time )
#end
<br />
<a href="#formatURL( "SERVLET" "sourceid/logout_sso.js.vs?provider=$ep" )">Click here to log out.</a>
#else
Not logged in.
#end
</td>
<td>
#if( $p.federated )
Federated.<br />
<a href="#formatURL( "SERVLET" "sourceid/defederate.js.vs?provider=$ep" )">Click to terminate
federation.</a>
#else
Not federated.<br />
<a href="#formatURL( "SERVLET" "sourceid/federate.js.vs?provider=$ep" )">Click to federate.</a>
#end
</td>
</tr>
#end
</table>
#else
<p>User not logged in.</p>
#end