cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf-fediz git commit: [FEDIZ-134] Registering refresh token grant handler
Date Tue, 24 Nov 2015 15:00:10 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 65d264ef6 -> 128f03c3e


[FEDIZ-134] Registering refresh token grant handler


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

Branch: refs/heads/master
Commit: 128f03c3e23e1562690f624408e8147117438df0
Parents: 65d264e
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Nov 24 14:59:52 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Nov 24 14:59:52 2015 +0000

----------------------------------------------------------------------
 services/oidc/src/main/resources/data-manager.xml            | 1 +
 services/oidc/src/main/webapp/WEB-INF/applicationContext.xml | 4 ++++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/128f03c3/services/oidc/src/main/resources/data-manager.xml
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/resources/data-manager.xml b/services/oidc/src/main/resources/data-manager.xml
index 0996c8d..2155569 100644
--- a/services/oidc/src/main/resources/data-manager.xml
+++ b/services/oidc/src/main/resources/data-manager.xml
@@ -39,6 +39,7 @@
     -->
     <!--
         <property name="signIdTokenWithClientSecret" value="true"/>
+        <property name="accessTokenLifetime" value="3600"/>
     -->
         <property name="tokenConverter" ref="samlTokenConverter"/>
     </bean>

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/128f03c3/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 06d0ce6..8d58bed 100644
--- a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
@@ -73,10 +73,14 @@
     </bean>
     
     <bean id="idTokenFilter" class="org.apache.cxf.rs.security.oidc.idp.IdTokenResponseFilter"/>
+    <bean id="refreshTokenHandler" class="org.apache.cxf.rs.security.oauth2.grants.refresh.RefreshTokenGrantHandler">
+        <property name="dataProvider" ref="oauthProvider"/>
+    </bean>
     
     <bean id="accessTokenService" class="org.apache.cxf.rs.security.oauth2.services.AccessTokenService">
         <property name="dataProvider" ref="oauthProvider"/>
         <property name="responseFilter" ref="idTokenFilter"/>
+        <property name="grantHandler" ref="refreshTokenHandler"/>
         <property name="canSupportPublicClients" value="true"/>
     </bean>
     <bean id="fedizTokenValidator" class="org.apache.cxf.fediz.service.oidc.FedizAccessTokenValidator">


Mime
View raw message