You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jb...@apache.org on 2015/12/02 11:37:52 UTC

[1/2] cxf-fediz git commit: Enable more verbose logging for OIDC IDP

Repository: cxf-fediz
Updated Branches:
  refs/heads/master 9bbab2a88 -> 14b64887f


Enable more verbose logging for OIDC IDP


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

Branch: refs/heads/master
Commit: 620b95a228b3bede8846a10ed9a03338de8f50f6
Parents: 9bbab2a
Author: Jan Bernhardt <jb...@talend.com>
Authored: Tue Dec 1 21:20:42 2015 +0100
Committer: Jan Bernhardt <jb...@talend.com>
Committed: Wed Dec 2 11:32:14 2015 +0100

----------------------------------------------------------------------
 .../oidc/src/main/resources/log4j.properties    | 21 ++++++++++++++++++++
 .../main/webapp/WEB-INF/applicationContext.xml  | 11 +++++++++-
 2 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/620b95a2/services/oidc/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/resources/log4j.properties b/services/oidc/src/main/resources/log4j.properties
new file mode 100644
index 0000000..a81ea8b
--- /dev/null
+++ b/services/oidc/src/main/resources/log4j.properties
@@ -0,0 +1,21 @@
+# Set root category priority to INFO and its only appender to CONSOLE.
+#log4j.rootCategory=FATAL, CONSOLE
+log4j.rootCategory=INFO, CONSOLE, LOGFILE
+log4j.logger.org.apache.cxf.fediz.service.oidc=DEBUG, CONSOLE, LOGFILE
+log4j.additivity.org.apache.cxf.fediz.service.oidc = false
+log4j.logger.org.springframework.security=DEBUG, LOGFILE
+log4j.additivity.org.springframework.security = false
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Threshold=INFO
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=${catalina.base}/logs/oidc.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.Threshold=DEBUG
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/620b95a2/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
index c698c06..b5f6ae2 100644
--- a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
@@ -18,14 +18,23 @@
   under the License.
 -->
 <beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:cxf="http://cxf.apache.org/core"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:jaxrs="http://cxf.apache.org/jaxrs" 
     xsi:schemaLocation="
-        http://www.springframework.org/schema/beans
+        http://cxf.apache.org/core
+        http://cxf.apache.org/schemas/core.xsd
+		http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://cxf.apache.org/jaxrs
         http://cxf.apache.org/schemas/jaxrs.xsd">
 
+	<cxf:bus>
+        <cxf:features>
+            <cxf:logging/>
+        </cxf:features>
+    </cxf:bus>
+		
     <import resource="data-manager.xml" />
     
     <bean id="oidcAuthorizationService" class="org.apache.cxf.rs.security.oidc.idp.OidcAuthorizationCodeService">


[2/2] cxf-fediz git commit: rename oauth2Token service to oauth2

Posted by jb...@apache.org.
rename oauth2Token service to oauth2


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

Branch: refs/heads/master
Commit: 14b64887f87b4aaa153b38b703dd3ba267b54fc7
Parents: 620b95a
Author: Jan Bernhardt <jb...@talend.com>
Authored: Wed Dec 2 11:20:37 2015 +0100
Committer: Jan Bernhardt <jb...@talend.com>
Committed: Wed Dec 2 11:34:18 2015 +0100

----------------------------------------------------------------------
 services/oidc/src/main/webapp/WEB-INF/applicationContext.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/14b64887/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
index b5f6ae2..420fd4f 100644
--- a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
@@ -126,7 +126,7 @@
         <property name="blockUnauthorizedRequests" value="false"/> 
     </bean>
     <bean id="oauthJsonProvider" class="org.apache.cxf.rs.security.oauth2.provider.OAuthJSONProvider"/>
-    <jaxrs:server address="/oauth2Token">
+    <jaxrs:server address="/oauth2">
         <jaxrs:serviceBeans>
             <ref bean="accessTokenService"/>
             <ref bean="accessTokenValidatorService"/>