cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject git commit: [CXF-5578]: oauth sample, migrates to spring 3.1
Date Tue, 25 Feb 2014 15:40:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 2d9257621 -> 4dc42da1d


[CXF-5578]: oauth sample, migrates to spring 3.1


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4dc42da1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4dc42da1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4dc42da1

Branch: refs/heads/master
Commit: 4dc42da1d3621024ba6d9a139367b91a6671f45e
Parents: 2d92576
Author: Andrei Shakirin <andrei.shakirin@gmail.com>
Authored: Tue Feb 25 16:40:26 2014 +0100
Committer: Andrei Shakirin <andrei.shakirin@gmail.com>
Committed: Tue Feb 25 16:40:26 2014 +0100

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/security-beans.xml  | 22 +++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4dc42da1/distribution/src/main/release/samples/oauth/server/src/main/webapp/WEB-INF/security-beans.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/oauth/server/src/main/webapp/WEB-INF/security-beans.xml
b/distribution/src/main/release/samples/oauth/server/src/main/webapp/WEB-INF/security-beans.xml
index 0441ba7..40da498 100644
--- a/distribution/src/main/release/samples/oauth/server/src/main/webapp/WEB-INF/security-beans.xml
+++ b/distribution/src/main/release/samples/oauth/server/src/main/webapp/WEB-INF/security-beans.xml
@@ -17,7 +17,7 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd
                        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
                        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
                        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
     <beans:bean id="authenticationSuccHandler" class="demo.oauth.server.spring.AuthenticationSuccessfullHandler">
         <beans:property name="defaultTargetUrl" value="/app/newClientForm.jsp"/>
         <beans:property name="confirmationUrl" value="/auth/oauth/authorize/decision"/>
@@ -29,13 +29,21 @@
     <beans:bean id="entryPoint" class="demo.oauth.server.CustomAuth">
         <beans:property name="loginFormUrl" value="/index.jsp"/>
     </beans:bean>
+
+    <http pattern="/oAuthLogin.jsp" security="none" />
+    <http pattern="/index.jsp" security="none" />
+    <http pattern="/" security="none" />
+    <http pattern="/favicon.ico" security="none" />
+    <http pattern="/auth/oauth/**" security="none" />
+    <http pattern="/auth/resources/**" security="none" />
+
     <http auto-config="false" entry-point-ref="entryPoint">
-        <intercept-url pattern="/oAuthLogin.jsp" filters="none"/>
-        <intercept-url pattern="/index.jsp" filters="none"/>
-        <intercept-url pattern="/" filters="none"/>
-        <intercept-url pattern="/favicon.ico" filters="none"/>
-        <intercept-url pattern="/auth/oauth/**" filters="none"/>
-        <intercept-url pattern="/auth/resources/**" filters="none"/>
+        <intercept-url pattern="/oAuthLogin.jsp" />
+        <intercept-url pattern="/index.jsp"/>
+        <intercept-url pattern="/"/>
+        <intercept-url pattern="/favicon.ico"/>
+        <intercept-url pattern="/auth/oauth/**"/>
+        <intercept-url pattern="/auth/resources/**"/>
         <intercept-url pattern="/**" access="ROLE_USER"/>
         <form-login authentication-success-handler-ref="authenticationSuccHandler" authentication-failure-handler-ref="authenticationFailHandler"
login-page="/index.jsp" authentication-failure-url="/auth/oauth/authorize" default-target-url="/app/newClientForm.jsp"/>
         <logout invalidate-session="true" logout-url="/logout.htm" logout-success-url="/login.jsp?loggedout=true"/>


Mime
View raw message