From e62375e6eedb105e216d530317d6cd42fd0bfd8b Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Tue, 17 Jun 2003 23:17:34 +0000 Subject: [PATCH] starting to set up the IDP side of SourceID-SSO support (not ready yet) --- build.xml | 86 ++++++- conf-sso/{sp => }/dynamo.xml | 0 conf-sso/idp/sourceid-sso-providers.xml | 227 ++++++++++++++++++ conf-sso/idp/sourceid-sso.xml | 92 +++++++ conf-sso/idp/venice-idp.keystore | Bin 0 -> 1291 bytes conf-sso/{sp => }/logging.xml | 2 +- conf-sso/sp/sourceid-sso.xml | 2 - conf-sso/{sp => }/web.xml | 0 .../idp/scripts/sourceid/errorHandler.js | 25 ++ 9 files changed, 428 insertions(+), 6 deletions(-) rename conf-sso/{sp => }/dynamo.xml (100%) create mode 100644 conf-sso/idp/sourceid-sso-providers.xml create mode 100644 conf-sso/idp/sourceid-sso.xml create mode 100644 conf-sso/idp/venice-idp.keystore rename conf-sso/{sp => }/logging.xml (96%) rename conf-sso/{sp => }/web.xml (100%) create mode 100644 venice-data-sso/idp/scripts/sourceid/errorHandler.js diff --git a/build.xml b/build.xml index 4d10be9..f145396 100644 --- a/build.xml +++ b/build.xml @@ -425,17 +425,20 @@ - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + SourceID-Sample-SP + + + + MIICSjCCAbMCBD4coSAwDQYJKoZIhvcNAQEEBQAwbDEQMA4GA1UEBhMHVW5rbm93bjEQMA4GA1UECBMHVW5rbm93bjEQMA4GA1UEBxMHVW5rbm93bjEQMA4GA1UEChMHVW5rbm93bjEQMA4GA1UECxMHVW5rbm93bjEQMA4GA1UEAxMHVW5rbm93bjAeFw0wMzAxMDgyMjA3MjhaFw0wMzA0MDgyMjA3MjhaMGwxEDAOBgNVBAYTB1Vua25vd24xEDAOBgNVBAgTB1Vua25vd24xEDAOBgNVBAcTB1Vua25vd24xEDAOBgNVBAoTB1Vua25vd24xEDAOBgNVBAsTB1Vua25vd24xEDAOBgNVBAMTB1Vua25vd24wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMJhokczPBJlZe48d5oKZiX6vo7DBU5b54t9JjSHLOEZd0XK5w81BY4iX8QADMc7GyTrqDDrehfh4S5eQO89Fll50D4f6HpSI2QGtionDrj3kuET9nW9n98IzWc3eiLLH+5q3VGm04rylo4PTnJCeMYmDRqYJkWR1xQbNsrv9HHJAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAI16O969XJkYRJaTiPXMcJg8XRM9oHKqc4L6YEDXGvnQ8NfTPDuJEzKIcU8QWNnprcY+MOue+O2YvP7u9NQuKK4zDA14CcIRb8G+VMLFa2A+BYiD66yIBWsb89YNFYnvH379wGp+ankQBTdljpgFo6Bt+fXmZxB6mToBdXy0h5b8= + + + + http://localhost:8080/sso-sample-sp/sso/authnRequest + http://localhost:8080/sso-sample-sp/sso/soap/endpoint + http://localhost:8080/sso-sample-sp/sso/logout + http://localhost:8080/sso-sample-sp/sso/logout + http://localhost:8080/sso-sample-sp/sso/fedterm + http://localhost:8080/sso-sample-sp/sso/fedterm + + http://projectliberty.org/profiles/fedterm-idp-soap + http://projectliberty.org/profiles/fedterm-idp-http + http://projectliberty.org/profiles/slo-idp-soap + http://projectliberty.org/profiles/slo-idp-http + http://projectliberty.org/profiles/slo-idp-http-get + http://projectliberty.org/profiles/rni-idp-soap + http://localhost:8080/sourceid-sso/sso/rni + http://localhost:8080/sourceid-sso/sso/rni + http://projectliberty.org/profiles/rni-idp-http + false + + + + + + SourceID-Sample-IDP + + + + MIICSjCCAbMCBD4coSAwDQYJKoZIhvcNAQEEBQAwbDEQMA4GA1UEBhMHVW5rbm93bjEQMA4GA1UECBMHVW5rbm93bjEQMA4GA1UEBxMHVW5rbm93bjEQMA4GA1UEChMHVW5rbm93bjEQMA4GA1UECxMHVW5rbm93bjEQMA4GA1UEAxMHVW5rbm93bjAeFw0wMzAxMDgyMjA3MjhaFw0wMzA0MDgyMjA3MjhaMGwxEDAOBgNVBAYTB1Vua25vd24xEDAOBgNVBAgTB1Vua25vd24xEDAOBgNVBAcTB1Vua25vd24xEDAOBgNVBAoTB1Vua25vd24xEDAOBgNVBAsTB1Vua25vd24xEDAOBgNVBAMTB1Vua25vd24wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMJhokczPBJlZe48d5oKZiX6vo7DBU5b54t9JjSHLOEZd0XK5w81BY4iX8QADMc7GyTrqDDrehfh4S5eQO89Fll50D4f6HpSI2QGtionDrj3kuET9nW9n98IzWc3eiLLH+5q3VGm04rylo4PTnJCeMYmDRqYJkWR1xQbNsrv9HHJAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAI16O969XJkYRJaTiPXMcJg8XRM9oHKqc4L6YEDXGvnQ8NfTPDuJEzKIcU8QWNnprcY+MOue+O2YvP7u9NQuKK4zDA14CcIRb8G+VMLFa2A+BYiD66yIBWsb89YNFYnvH379wGp+ankQBTdljpgFo6Bt+fXmZxB6mToBdXy0h5b8= + + + + http://localhost:8080/sso-sample-idp/sso/soap/endpoint + http://localhost:8080/sso-sample-idp/sso/logout + http://localhost:8080/sso-sample-idp/sso/logout + http://localhost:8080/sso-sample-idp/sso/fedterm + http://localhost:8080/sso-sample-idp/sso/fedterm + http://localhost:8080/sso-sample-idp/sso/authn + + http://projectliberty.org/profiles/rni-sp-soap + http://projectliberty.org/profiles/fedterm-sp-soap + http://projectliberty.org/profiles/fedterm-sp-http + http://projectliberty.org/profiles/slo-sp-soap + http://projectliberty.org/profiles/slo-sp-http + http://projectliberty.org/profiles/brws-art + http://projectliberty.org/profiles/brws-post + http://projectliberty.org/profiles/wml-post + http://projectliberty.org/profiles/lecp + + + + + + + + + + + + + + + + diff --git a/conf-sso/idp/sourceid-sso.xml b/conf-sso/idp/sourceid-sso.xml new file mode 100644 index 0000000..237bc15 --- /dev/null +++ b/conf-sso/idp/sourceid-sso.xml @@ -0,0 +1,92 @@ + + + + + + + Venice-SSO-IDP + + + idp + + /WEB-INF/sourceid-sso-providers.xml + + + /defaultExceptionHandler.jsp + + + + /WEB-INF/venice-idp.keystore + thecheat + thatkey + strongbad + + + TODO + 1800 + TODO + TODO + TODO + + + dynamo.session + + + 60 + 300 + + + com.silverwrist.venice.sourceid.VeniceAccountHandler + + org.sourceid.sso.handlers.ArtifactHandlerInMemoryImpl + + + + + + + + diff --git a/conf-sso/idp/venice-idp.keystore b/conf-sso/idp/venice-idp.keystore new file mode 100644 index 0000000000000000000000000000000000000000..337b6a446bebcbccb0b216329bc7002f1fd12b35 GIT binary patch literal 1291 zcmezO_TO6u1_mY|W&~sQl8nTX?9@si=j#n7g$F?KeuE~)ZUa6xE^RhO7Dg>5K}JSa z29_qqa`l>PZ)y~ISYGk{SK7fpVc~}ZM~_-YHQ7to zPC9!cGBQO>aITZp)8_9!?yH6NKNc_8YWDYyW5>1HiB&h_!`FTm@SJ^I)j90?(d_nq zXO2jPZx>5BLhc7}PFufrTi~`87k*xF{^}7|l@PvI_xhSy@r^sw%gv-VN^H5drEvZH zlljNEzQ=vk+_Qax_S^5D_RVS%yxIOTdbhCZk&P~QeAn~aSA*k;HA2tSz>Di$<*Bh-HWKHrvr6p|7o*A%o$^7{*SgHk- z4*Bn1dHvt^W70pY!=E2pu}qYo<#+S9%SYu7Gns}6M~O`|`d0dRop$1Nt@odlm?h_4 z^k6*BB+4*7A)sGWnfuJ9NjsYsy>8+D5Fzsw8%yqn;DX9@>aib%)gS zYCKrHPELFCveJopi|e_6DVipI{GC+AsA7F)$;W*w0w;8?Xukh2>gjy8N!@924b`El zDU3eW|IT}AF*mj_Ff}&V_G-+u52!k;o%)vPcCg%*^2rBZeiz!8D#pMcaa2Lh>0s;C zB-@`Cw^=*IX-rN3`RDn^JFgXc`JD3;qnV$m{+ZSHZQs%Ba(o5l%1UB^H+N2SdA{w) z|2F34@Z6QW2Zb-Y2gT%dmECQaUNf^V&uq@F@Bfq6?tcBO%XIlNpOUTSU0NvVoLQg2 zK!-^rE@SDl6`C8Adf9E>D;|`o^fQZ$XA;TcWlZDKPIZ{Kb?S5d|M_osuJN!x8?}Cd V{TZ#6eSVE - + diff --git a/conf-sso/sp/sourceid-sso.xml b/conf-sso/sp/sourceid-sso.xml index 0937d86..077b3d7 100644 --- a/conf-sso/sp/sourceid-sso.xml +++ b/conf-sso/sp/sourceid-sso.xml @@ -38,8 +38,6 @@ will already cleanup it's own session tracking info for the user, effectively logging them out of SourceID-SSO. By putting an attribute key here, you can have SourceID-SSO log the user out of your application as well. Future versions of SourceID-SSO will also support JAAS-based login/logout. - - The sample value below works for the sample JSP-based application distributed with SourceID-SSO. --> dynamo.session diff --git a/conf-sso/sp/web.xml b/conf-sso/web.xml similarity index 100% rename from conf-sso/sp/web.xml rename to conf-sso/web.xml diff --git a/venice-data-sso/idp/scripts/sourceid/errorHandler.js b/venice-data-sso/idp/scripts/sourceid/errorHandler.js new file mode 100644 index 0000000..5306cec --- /dev/null +++ b/venice-data-sso/idp/scripts/sourceid/errorHandler.js @@ -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 . +// +// 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 , +// 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): + +importPackage(Packages.com.silverwrist.dynamo.iface); +importPackage(Packages.com.silverwrist.dynamo.util); +importPackage(Packages.com.silverwrist.venice.content); + +req = bsf.lookupBean("request"); // get request +rhelp = bsf.lookupBean("request_help"); // get request helper + +ex = cast.toThrowable(rhelp.getChainParameter("javax.servlet.jsp.jspException")); +dynamo.scriptReturn(new ErrorBox("Captured SourceID Error",ex));