From 503b8ea70b8fb336216ea6d1c3b60e977eaaacce Mon Sep 17 00:00:00 2001 From: derekyuan Date: Fri, 14 Sep 2018 10:34:30 +0800 Subject: [PATCH] add README.md for document --- docs/README.md | 1 + docs/tars_auth.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++ framework | 2 +- tup | 2 +- 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 docs/tars_auth.md diff --git a/docs/README.md b/docs/README.md index 42288cffa..dc731f06d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,3 +7,4 @@ tars_idc_set.md |Tars框架IDC分组和Set分组说明文档 tars_openssl.md |Tars框架支持https协议功能说明 tars_performce.md |Tars框架性能测试说明文档 tars_tracing.md |Tars框架调用链使用说明 +tars_auth.md |Tars鉴权功能 diff --git a/docs/tars_auth.md b/docs/tars_auth.md new file mode 100644 index 000000000..694af0efb --- /dev/null +++ b/docs/tars_auth.md @@ -0,0 +1,67 @@ +# tarsȨ + +tarsһǿRPCܣֻҪõ÷tarsЭļͿʹtarsܱ룬󱻵񡣷ͬʱҲһЩȫǵķӿеģϣݱʡҪһϸļȨʻơ +tarsṩĻƣֻҪ˺룬tarsԶ֤ҵȫ͸޷ṩȷ˺ +Ŀͻˣֱߵӡ + +ĿǰֻC++ּ֧Ȩܣjava֧֡ + +## tarsȨʹ + +tarsȨʹ÷dz򵥣㲻Ҫ޸һд룬ֻҪļ +ֻҪã + +### 1. ޸ı÷endpointȨ +tarsƽ̨ѡҪüȨķ񣬱༭servant޸endpoint-e 1. +-eʾǷȨĬΪ0DzģΪ1ǿ + +![endpoint](images/tars_auth_endpoint.png) + +### 2. ޸ı÷ļ˺ +ע⣬÷жadapterÿҪȨadapterԼ˺롣 +ͼtest.oko.BertObjAdapter˺bert123456 + +![server](images/tars_auth_server.png) + +ڽͼȫʵ˽ģ£ + +```xml + + + + + accesskey=bert + secretkey=123456 + + + + +``` + +ڣwebƽ̨ + +### 3. ޸ĵ÷ļ˺ +ע⣬÷ԷʶobjÿҪȨobjԼ˺롣 +ͼtest.oko.BertObj˺bert123456 + +![client](images/tars_auth_client.png) + +ڽͼȫʵ˽ģ£ + +```xml + + + + + accesskey=bert + secretkey=123456 + + + + +``` + +ڣwebƽ̨÷ + +ķͱͨ˺ſԷˡ + diff --git a/framework b/framework index 4f7a5f3c4..3830a47ef 160000 --- a/framework +++ b/framework @@ -1 +1 @@ -Subproject commit 4f7a5f3c49a5f3eba2a4328badf7c3191caf4406 +Subproject commit 3830a47ef258a8c61cbba09ad92c41e713e432cb diff --git a/tup b/tup index edcfeb07d..e0c97e7e8 160000 --- a/tup +++ b/tup @@ -1 +1 @@ -Subproject commit edcfeb07ded325139b0f65046bc9b6f843b43dc1 +Subproject commit e0c97e7e85c5edf26da77cb19fd9d831bffaadc3