{"id":159359,"date":"2020-09-23T09:04:44","date_gmt":"2020-09-23T01:04:44","guid":{"rendered":"http:\/\/4563.org\/?p=159359"},"modified":"2020-09-23T09:04:44","modified_gmt":"2020-09-23T01:04:44","slug":"%e8%af%b7%e6%95%99%e5%85%b3%e4%ba%8e-web-%e7%ab%af%e6%94%af%e6%8c%81%e5%a4%9a%e7%ab%af%e7%99%bb%e5%bd%95%e7%9a%84%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159359","title":{"rendered":"\u8bf7\u6559\u5173\u4e8e web \u7aef\u652f\u6301\u591a\u7aef\u767b\u5f55\u7684\u65b9\u6848"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u5173\u4e8e web \u7aef\u652f\u6301\u591a\u7aef\u767b\u5f55\u7684\u65b9\u6848               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : NULL2020 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u516c\u53f8\u9879\u76ee\u51c6\u5907\u505a web \u7aef\uff0c\u4e4b\u524d\u90fd\u662f\u79fb\u52a8\u7aef\uff0c\u540e\u7aef\u767b\u5f55\u8fd9\u5757\u7684\u65b9\u6848\u53ea\u662f\u7b80\u5355\u7684 JWT\uff0ctoken \u5b58 redis\uff0c\u524d\u7aef\u8bf7\u6c42\u8fc7\u6765\u4f1a\u5224\u65ad\u662f\u5426\u8ddf\u7f13\u5b58\u91cc\u7684\u4e00\u81f4\uff0c\u79fb\u52a8\u7aef\u4e0d\u652f\u6301\u591a\u7aef\u767b\u5f55\u3002<\/p>\n<p>\u73b0\u5728\u4ea7\u54c1\u8981\u6c42 web \u7aef\u8981\u652f\u6301\u591a\u7aef\u767b\u5f55\uff0c\u5e76\u4e14\u67d0\u4e00\u7aef\u9000\u51fa\u4e0d\u4f1a\u5f71\u54cd\u53e6\u4e00\u7aef\uff0c\u7c7b\u4f3c\u4e8e\u5fae\u535a\uff0c\u521a\u521a\u7528 chrome \u548c safari \u6d4b\u8bd5\u4e86\u4e0b\u540c\u65f6\u767b\u5f55\uff0c\u786e\u5b9e\u80fd\u505a\u5230\u591a\u7aef\u5728\u7ebf\uff0c\u5e76\u4e14\u9000\u51fa\u4e0d\u5f71\u54cd\u53e6\u4e00\u4e2a\u3002<\/p>\n<p>\u8bf7\u6559\u4e0b\u4e1a\u754c\u4e00\u822c\u7528\u4ec0\u4e48\u65b9\u6848\u5b9e\u73b0\uff1f\u540e\u7aef\u6280\u672f\u6808\u662f Springboot\uff0c\u6682\u65f6\u6ca1\u7528\u5230 Shiro &amp; Security .      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3429483\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noe132 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90fd jwt \u4e86\uff0c\u8fd8\u653e\u5728\u7f13\u5b58\u91cc\uff0c\u8fd9\u548c session \u6709\u4ec0\u4e48\u533a\u522b\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429484\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kop1989 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7406\u89e3\u7684\u591a\u7aef\u767b\u5f55\u5c31\u662f\u653e\u5f00 token \u4e0e\u8d26\u53f7\u7684 1 \u5bf9 1 \u5173\u7cfb\uff0c\u7528\u6bcf\u6b21\u6253\u5f00\u9875\u9762\u751f\u6210\u7684\u4e00\u4e2a\u968f\u673a ID \u6216\u8005\u4e4b\u7c7b\u7684+\u8d26\u53f7\uff0c\u4e0e token \u4e00\u5bf9\u4e00\u3002<br \/>\u65e2\u539f\u6765\u7684\u903b\u8f91\u662f\u8d26\u53f7 A \u5bf9\u5e94 tokenA\uff0ctokenA \u5931\u6548\u5237\u65b0\u5f97\u5230 TokenB\uff0c\u6b64\u65f6\u8d26\u53f7 A \u53ea\u80fd\u7528 TokenB \u8bf7\u6c42\u3002<br \/>\u800c\u73b0\u5728\u662f\u8d26\u53f7 A+123 \u5bf9\u5e94 tokenA\uff0c\u8d26\u53f7 A+234 \u5bf9\u5e94 tokenP\uff0c\u4ed6\u4fe9\u5206\u522b\u66f4\u65b0\u5931\u6548 token \u4e92\u4e0d\u5f71\u54cd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429485\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuhuan475 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             jwt \u4e0d\u662f\u80fd\u89e3\u5bc6\u5417\uff1f\u5b58 redis \u662f\u5e72\u5565\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429486\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bcf\u6b21\u767b\u9646\uff0c\u5355\u72ec\u4e00\u4e2a token\uff0c\u6bcf\u6b21\u65ad\u5f00\uff0c\u53ea\u6e05\u7406\u5f53\u524d token                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429487\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zachlhb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5404\u7aef\u5efa\u7acb\u4e0d\u540c\u7684\u767b\u5f55\u6c60\uff0c\u751f\u6210\u7684 token \u524d\u52a0\u4e0a\u7aef\u6807\u8bc6\u7b26\uff0c\u53ea\u5728\u76f8\u540c\u7aef\u91cc\u8fdb\u884c\u5355\u70b9\u767b\u5f55\u9a8c\u8bc1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429488\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jay4497 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u539f\u59cb\u7684 session \u4e0d\u5c31\u53ef\u4ee5\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429489\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : NULL2020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @noe132 #1 <br \/>@liuhuan475 #3 \u540e\u7aef\u52a0\u4e86\u4e00\u5c42\u6839\u636e ua + uid \u5224\u65ad token \u662f\u5426\u4e00\u81f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429490\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HashV2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             token \u7b7e\u53d1\u4e4b\u540e\u5c31\u4e0d\u7ba1\u4e86, \u591a\u6b21\u767b\u5f55\u591a\u6b21\u7b7e\u53d1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429491\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HuberyPang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             jwt \u6709\u914d\u7f6e\u79c1\u94a5\u89e3\u5bc6\uff0c\u4e0d\u9700\u8981\u5b58 redis\uff0c\u76f4\u63a5\u89e3\u5bc6\u6821\u9a8c\u5c31\u884c,\u914d\u7f6e\u4e2a\u8fc7\u671f\u65f6\u95f4\uff0c\u6bcf\u6b21\u767b\u5f55\u65f6\u90fd\u751f\u6210\u4e00\u4e2a token \u56de\u53bb\u5c31\u884c\uff0c\u8fd9\u6837\u591a\u5c11\u7aef\u90fd\u4e0d\u4f1a\u5f71\u54cd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429492\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zoharSoul <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5148\u8bb2\u8bb2\u4f60\u600e\u4e48\u505a\u5230\u4e0d\u652f\u6301\u7684&#8230;?<\/p>\n<p>\u7406\u8bba\u4e0a\u672c\u6765\u5c31\u662f\u652f\u6301\u591a\u7aef\u540c\u65f6\u7684, \u4e0d\u5141\u8bb8\u624d\u9700\u8981\u7279\u6b8a\u5904\u7406\u554a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3429493\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : NULL2020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @HuberyPang #9 <br \/>@zoharSoul #10 <br \/>\u55ef\u55ef\uff0c\u5927\u6982\u662f\u6211\u60f3\u590d\u6742\u4e86\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u5173\u4e8e web \u7aef\u652f\u6301\u591a\u7aef\u767b\u5f55\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159359"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159359"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159359\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159359"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}