From 7583aca3ebf7d95f71b84968e0f82b2ce129d877 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 1 Jan 2008 16:51:15 +0000 Subject: [PATCH] Configured contacts app to use namespaces. Removed ldap, cas, x509 files to avoid confusion. Ldap and CAS will be better served by new samples. --- ...pplicationContext-common-authorization.xml | 21 +- .../applicationContext-acegi-security-cas.xml | 192 ------------------ ...applicationContext-acegi-security-ldap.xml | 142 ------------- ...applicationContext-acegi-security-x509.xml | 175 ---------------- .../applicationContext-acegi-security.xml | 2 +- .../contacts/src/main/webapp/WEB-INF/web.xml | 4 +- 6 files changed, 10 insertions(+), 526 deletions(-) delete mode 100644 samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-cas.xml delete mode 100644 samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-ldap.xml delete mode 100644 samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-x509.xml diff --git a/samples/contacts/src/main/resources/applicationContext-common-authorization.xml b/samples/contacts/src/main/resources/applicationContext-common-authorization.xml index e4f8cb218f..b4424346ac 100644 --- a/samples/contacts/src/main/resources/applicationContext-common-authorization.xml +++ b/samples/contacts/src/main/resources/applicationContext-common-authorization.xml @@ -148,9 +148,7 @@ - - - + @@ -161,9 +159,7 @@ - - - + @@ -183,15 +179,12 @@ ensure the user is authenticated via their ACL_CONTACT_DELETE or ACL_CONTACT_READ attribute, which also ensures the user has permission to the Contact presented as a method argument. + + Autowired to pick up authentication manager from namespace config. --> - - - - - - - - + + + sample.contact.ContactManager.create=ROLE_USER diff --git a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-cas.xml b/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-cas.xml deleted file mode 100644 index f21e153e7b..0000000000 --- a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-cas.xml +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - PATTERN_TYPE_APACHE_ANT - /**=channelProcessingFilter,httpSessionContextIntegrationFilter,logoutFilter,casProcessingFilter,basicProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor - - - - - - - - - - - - - - - - - - - - - - - - - Contacts Realm - - - - - - - - - - my_password_for_this_auth_provider_only - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - \A/secure/.*\Z=REQUIRES_SECURE_CHANNEL - \A/j_spring_cas_security_check.*\Z=REQUIRES_SECURE_CHANNEL - \A.*\Z=REQUIRES_INSECURE_CHANNEL - - - - - - - - - - - - - - - - - - - - - - - - - /casfailed.jsp - / - /j_spring_cas_security_check - - - - https://localhost:8443/cas/login - - - - - false - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - \A/secure/super.*\Z=ROLE_WE_DONT_HAVE - \A/secure/.*\Z=ROLE_SUPERVISOR,ROLE_TELLER - - - - - - - diff --git a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-ldap.xml b/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-ldap.xml deleted file mode 100644 index 38911d41ed..0000000000 --- a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-ldap.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - PATTERN_TYPE_APACHE_ANT - /**=httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor - - - - - - - - - - - - - - - - - - - - - - - - - uid={0},ou=people - - - - - - ou=groups - ou - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /acegilogin.jsp?login_error=1 - / - /j_spring_security_check - - - - /acegilogin.jsp - false - - - - false - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - \A/secure/super.*\Z=ROLE_WE_DONT_HAVE - \A/secure/.*\Z=ROLE_SUPERVISOR,ROLE_TELLER - - - - - - - diff --git a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-x509.xml b/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-x509.xml deleted file mode 100644 index 770c1f0429..0000000000 --- a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security-x509.xml +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - PATTERN_TYPE_APACHE_ANT - /**=channelProcessingFilter,httpSessionContextIntegrationFilter,logoutFilter,x509ProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor - - - - - - - - - - - - - - - - - - - - - - - - - Contacts Realm - - - - - - - - - - - - - - - - - - x509Cache - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - \A/secure/.*\Z=REQUIRES_SECURE_CHANNEL - \A.*\Z=REQUIRES_INSECURE_CHANNEL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - - - - - - - - - - - - - - CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON - \A/secure/super.*\Z=ROLE_WE_DONT_HAVE - \A/secure/.*\Z=ROLE_SUPERVISOR,ROLE_TELLER - - - - - - - diff --git a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security.xml b/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security.xml index 007fea6e9d..ea1f7dd703 100644 --- a/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security.xml +++ b/samples/contacts/src/main/webapp/WEB-INF/applicationContext-acegi-security.xml @@ -24,7 +24,7 @@ - +