Skip to content
Permalink
Browse files
Provider add token (#353)
* provider add token

* fix some don't support token protocol

* fix ci

* revocer license
  • Loading branch information
haoyann committed Aug 3, 2021
1 parent cd72718 commit a0517727689a673390de62870a92cc634a4d4f8e
Showing 82 changed files with 140 additions and 8 deletions.
@@ -21,3 +21,4 @@ dubbo.application.name=samples-annotation-provider
dubbo.registry.address=zookeeper://${zookeeper.address:127.0.0.1}:2181
dubbo.protocol.name=dubbo
dubbo.protocol.port=20880
dubbo.provider.token=true
@@ -27,6 +27,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="greetingService" class="org.apache.dubbo.samples.async.impl.GreetingsServiceImpl"/>
@@ -30,6 +30,8 @@

<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:provider token="true"/>

<bean id="asyncService" class="org.apache.dubbo.samples.governance.impl.AsyncServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.governance.api.AsyncService" ref="asyncService"/>
@@ -29,6 +29,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="asyncService" class="org.apache.dubbo.samples.async.impl.AsyncServiceImpl"/>
@@ -31,6 +31,8 @@

<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:provider token="true"/>

<bean id="asyncService" class="org.apache.dubbo.samples.async.impl.AsyncServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.async.api.AsyncService" ref="asyncService"/>
@@ -29,6 +29,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="asyncService" class="org.apache.dubbo.samples.async.impl.AsyncServiceImpl"/>
@@ -27,6 +27,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="demoService" class="org.apache.dubbo.samples.attachment.impl.AttachmentImpl"/>
@@ -21,4 +21,5 @@ dubbo.application.name=samples-annotation-provider
dubbo.registry.address=zookeeper://${zookeeper.address:127.0.0.1}:2181
dubbo.registry.simplifed=true
dubbo.protocol.name=dubbo
dubbo.protocol.port=20880
dubbo.protocol.port=20880
dubbo.provider.token=true
@@ -27,6 +27,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<bean id="demoService" class="org.apache.dubbo.samples.basic.impl.DemoServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.basic.api.DemoService" ref="demoService"/>
@@ -28,6 +28,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:${zookeeper.port:2181}"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="hibernateService" class="org.apache.dubbo.samples.boundary.hibernate.impl.HibernateServiceImpl"/>
@@ -4,7 +4,7 @@ dubbo.scan.base-packages=org.apache.dubbo.samples.boundary.mybatis
dubbo.protocol.name=dubbo
dubbo.protocol.port=20880
dubbo.registry.address=zookeeper://127.0.0.1:2181

dubbo.provider.token=true
dubbo.application.name=${spring.application.name}

spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
@@ -27,6 +27,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:${zookeeper.port:2181}"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="cacheService" class="org.apache.dubbo.samples.cache.impl.CacheServiceImpl"/>
@@ -29,6 +29,8 @@

<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:provider token="true"/>

<bean id="callbackService" class="org.apache.dubbo.samples.callback.impl.CallbackServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.callback.api.CallbackService" ref="callbackService"
@@ -28,6 +28,7 @@
<!-- optional provider's application name, used for tracing dependency relationship -->
<dubbo:application name="chain-backend-app"/>
<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>
<dubbo:provider token="true"/>
<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:config-center address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>
@@ -29,6 +29,7 @@
<!-- optional provider's application name, used for tracing dependency relationship -->
<dubbo:application name="chain-middle-app"/>
<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>
<dubbo:provider token="true"/>
<dubbo:protocol name="dubbo" port="20881"/>

<dubbo:config-center address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>
@@ -27,6 +27,8 @@

<dubbo:protocol name="dubbo"/>

<dubbo:provider token="true"/>

<bean id="demoService" class="org.apache.dubbo.demo.provider.DemoServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.demo.DemoService" ref="demoService"/>
@@ -23,6 +23,8 @@

<dubbo:application name="demo-provider" metadata-type="remote"/>

<dubbo:provider token="true"/>

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181?registry-type=service"/>
<!-- <dubbo:registry address="nacos://${nacos.address:127.0.0.1}:8848?registry-type=service"/>-->

@@ -27,6 +27,8 @@

<dubbo:protocol name="dubbo" port="20881"/>

<dubbo:provider token="true"/>

<bean id="demoServiceFromNormal" class="org.apache.dubbo.demo.provider.DemoServiceFromNormal"/>
<bean id="demoServiceFromDual" class="org.apache.dubbo.demo.provider.DemoServiceFromDual"/>

@@ -27,6 +27,8 @@

<dubbo:protocol name="dubbo" port="20882"/>

<dubbo:provider token="true"/>

<bean id="demoServiceFromService" class="org.apache.dubbo.demo.provider.DemoServiceFromService"/>
<bean id="demoServiceFromDual" class="org.apache.dubbo.demo.provider.DemoServiceFromDual"/>

@@ -28,6 +28,8 @@

<dubbo:protocol name="dubbo"/>

<dubbo:provider token="true"/>

<bean id="demoService" class="org.apache.dubbo.demo.provider.DemoServiceImpl"/>
<bean id="greetingService" class="org.apache.dubbo.demo.provider.GreetingServiceImpl"/>

@@ -31,6 +31,8 @@

<dubbo:protocol name="dubbo" port="20890"/>

<dubbo:provider token="true"/>

<bean id="demoService" class="org.apache.dubbo.samples.basic.impl.DemoServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.basic.api.DemoService" ref="demoService"/>
@@ -19,3 +19,4 @@

dubbo.application.name=configcenter-annotation-provider
dubbo.config-center.address=zookeeper://${zookeeper.address:127.0.0.1}:2181
dubbo.provider.token=true
@@ -19,3 +19,4 @@
dubbo.application.name=configcenter-multi-registries-provider
dubbo.config-center.address=zookeeper://${config-center.address:127.0.0.1}:2181
dubbo.config-center.config-file=dubbo.properties
dubbo.provider.token=true
@@ -27,6 +27,8 @@

<dubbo:registry address="consul://${consul.address:127.0.0.1}:8500"/>

<dubbo:provider token="true"/>

<bean id="demoService" class="org.apache.dubbo.samples.consul.impl.DemoServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.consul.api.DemoService" ref="demoService"/>
@@ -29,6 +29,8 @@

<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:provider token="true"/>

<bean id="contextServiceImpl" class="org.apache.dubbo.samples.context.impl.ContextServiceImpl"/>

<dubbo:service interface="org.apache.dubbo.samples.context.api.ContextService" ref="contextServiceImpl"/>
@@ -33,6 +33,7 @@

<dubbo:protocol name="dubbo" port="20890"/>
<dubbo:protocol name="hessian" port="8082"/>
<dubbo:provider token="true"/>

<dubbo:provider id="defaultDubboCofig" protocol="dubbo,hessian" registry="beijingRegistry,shanghaiRegistry">
<dubbo:service interface="org.apache.dubbo.samples.multi.registry.api.HelloService" ref="helloService"/>
@@ -28,6 +28,8 @@

<dubbo:registry client="curator" address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<dubbo:provider delay="-1"/>
@@ -27,6 +27,8 @@

<dubbo:registry address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<dubbo:provider token="true"/>

<dubbo:protocol name="dubbo" port="20880"/>

<bean id="demoService" class="org.apache.dubbo.samples.echo.impl.DemoServiceImpl"/>
@@ -1,4 +1,5 @@
# Base packages to scan Dubbo Components (e.g @DubboService , @DubboReference)
dubbo.scan.basePackages=org.apache.dubbo.samples.edas
dubbo.application.name=dubbo-provider-demo<