From: Ray Lee Date: Thu, 14 Jul 2016 21:28:49 +0000 (-0700) Subject: DRYD-22: Configure oauth2 token granting endpoint. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=b5e66f2def8e721736a9cd40e15d755fbecaebdf;p=tmp%2Fjakarta-migration.git DRYD-22: Configure oauth2 token granting endpoint. --- diff --git a/pom.xml b/pom.xml index c8ae0aebd..17fd5e61e 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ 0.12.0-NX2 4.3.1.RELEASE 4.1.0.RELEASE + 2.0.10.RELEASE diff --git a/services/JaxRsServiceProvider/pom.xml b/services/JaxRsServiceProvider/pom.xml index 874cb307f..71cd0f4c7 100644 --- a/services/JaxRsServiceProvider/pom.xml +++ b/services/JaxRsServiceProvider/pom.xml @@ -417,6 +417,12 @@ ${spring.security.version} provided + + org.springframework.security.oauth + spring-security-oauth2 + ${spring.security.oauth2.version} + provided + org.springframework spring-context diff --git a/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml index 877ee8f7e..40daafe55 100644 --- a/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -11,9 +11,11 @@ + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd + http://www.springframework.org/schema/security/oauth2 http://www.springframework.org/schema/security/spring-security-oauth2.xsd"> + + + + + + + + + - + - + @@ -56,4 +69,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/oauth-servlet.xml b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/oauth-servlet.xml new file mode 100644 index 000000000..543e542f1 --- /dev/null +++ b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/oauth-servlet.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml index 9de96d989..1ff6b2da8 100644 --- a/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml +++ b/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml @@ -140,15 +140,25 @@ + + oauth + org.springframework.web.servlet.DispatcherServlet + 1 + + + oauth + /oauth/token/* + + Resteasy org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher - + Resteasy - /* + / diff --git a/services/authentication/service/pom.xml b/services/authentication/service/pom.xml index 8e3cf394b..baedae47d 100644 --- a/services/authentication/service/pom.xml +++ b/services/authentication/service/pom.xml @@ -78,6 +78,12 @@ ${spring.version} provided + + org.springframework.security.oauth + spring-security-oauth2 + ${spring.security.oauth2.version} + provided + diff --git a/services/common/lib/spring/spring-security-jwt-1.0.4.RELEASE.jar b/services/common/lib/spring/spring-security-jwt-1.0.4.RELEASE.jar new file mode 100644 index 000000000..ac8dec15a Binary files /dev/null and b/services/common/lib/spring/spring-security-jwt-1.0.4.RELEASE.jar differ diff --git a/services/common/lib/spring/spring-security-oauth2-2.0.10.RELEASE.jar b/services/common/lib/spring/spring-security-oauth2-2.0.10.RELEASE.jar new file mode 100644 index 000000000..354b7688c Binary files /dev/null and b/services/common/lib/spring/spring-security-oauth2-2.0.10.RELEASE.jar differ diff --git a/services/common/lib/spring/spring-webmvc-4.3.1.RELEASE.jar b/services/common/lib/spring/spring-webmvc-4.3.1.RELEASE.jar new file mode 100644 index 000000000..1bec7712d Binary files /dev/null and b/services/common/lib/spring/spring-webmvc-4.3.1.RELEASE.jar differ