better-integrated the SSO Service Provider information by moving it onto a
Profile page
This commit is contained in:
76
venice-data-sso/sp/velocity/sourceid/federations.vm
Normal file
76
venice-data-sso/sp/velocity/sourceid/federations.vm
Normal 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"> </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>
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user