completed support for SourceID IDP, not tested yet

This commit is contained in:
Eric J. Bowersox
2003-06-18 04:23:20 +00:00
parent e62375e6ee
commit e33daac2d2
20 changed files with 1041 additions and 8 deletions

View File

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

View File

@@ -0,0 +1,29 @@
#*
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:
provider = Name of provider that's asking us to log in.
federate = True (set) if the IDP is federating with us.
*#
<p>You are being asked to log on to Venice as a Liberty Identity Provider (IDP) by the following Liberty Service
Provider (SP): <b>#encodeHTML( $provider )</b>. After successfully logging on here, you will be redirected back to
the Service Provider.</p>
#if( $federate )
<p>In addition, the Service Provider has asked this IDP to federate this account after the user is authenticated.
This will happen automatically.</p>
#end

View File

@@ -0,0 +1,38 @@
#*
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:
logout = List of ServiceProviders to log out, with IDs and URLs.
nextURL = The next URL to move to.
*#
#header1( "Single Logout" )
<p>When all the checkmark images below have finished loading, you will have been logged out of Venice, and also
logged out of all the Service Providers listed below with whom you've recently authenticated.</p>
<div align="center"><table border="1">
<tr>
<th><b>Provider ID</b></th>
<th><b>Logged Out</b></th>
</tr>
#foreach( $p in $logout )
<tr>
<td>#encodeHTML( $p.id )</td>
<td align="center"><img src="$p.url" width="32" height="32" border="0"></td>
</tr>
#end
</table></div>
<p>When all logouts are finished, <a href="$nextURL">click here</a>.</p>

View File

@@ -0,0 +1,25 @@
#*
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:
lares = LARES parameter to be posted bact to the URL
url = URL parameter to be posted back
*#
<html><body onload="javascript:document.theForm.submit()">
<form method="post" action="$url" name="theForm"><input type="hidden" name="LARES" value="$lares"></form>
</body></html>