better-integrated the SSO Service Provider information by moving it onto a

Profile page
This commit is contained in:
Eric J. Bowersox
2003-06-17 04:46:53 +00:00
parent 53dd5a6994
commit 835c9c389f
18 changed files with 214 additions and 139 deletions

View File

@@ -0,0 +1,76 @@
#*
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">&nbsp;</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
&nbsp;
#end
</td>
<td class="content">
#if( $p.logged_in && $p.expire_time )
#formatDate( $p.expire_time )
#else
&nbsp;
#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 )
&nbsp;
<a href="#formatURL( "SERVLET" "sourceid/logout_sso.js.vs?provider=$ep&tgt=$et" )">#button( "IMAGE" "logout" )</a>
#end
</td>
</tr>
#end
</table></div>

View File

@@ -1,59 +0,0 @@
#*
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