{"id":120567,"date":"2026-10-31T23:46:22","date_gmt":"2026-10-31T15:46:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120567.html"},"modified":"2026-10-31T23:46:22","modified_gmt":"2026-10-31T15:46:22","slug":"audience-%e7%99%bd%e5%90%8d%e5%8d%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120567.html","title":{"rendered":"Audience \u767d\u540d\u5355"},"content":{"rendered":"<h2>Audience \u767d\u540d\u5355<\/h2>\n<p>\u4e00\u53e5\u8bdd\u5b9a\u4e49&#xff1a;allowed audiences \u662f Auth Server \u4fa7\u7ed9\u6bcf\u4e2a Client \u914d\u7f6e\u7684\u201caudience \u767d\u540d\u5355\u201d\u2014\u2014\u89c4\u5b9a\u8fd9\u4e2a Client \u6700\u591a\u53ea\u80fd\u62ff\u5230\u6307\u5411\u54ea\u4e9b Resource Server \u7684 Token\u3002\u5b83\u662f Token \u7b7e\u53d1\u73af\u8282\u7684\u7b2c\u4e00\u9053\u95f8\u95e8\u3002<\/p>\n<h3>\u4e00\u3001\u5b83\u5728\u6574\u6761\u94fe\u8def\u91cc\u7684\u4f4d\u7f6e<\/h3>\n<p>\u7406\u89e3\u5b83\u9700\u8981\u628a\u4e09\u4e2a\u5c42\u6b21\u7684&#034;audience&#034;\u533a\u5206\u5f00&#xff0c;\u5b83\u4eec\u662f\u4e00\u6761\u94fe\u4e0a\u7684\u4e09\u73af&#xff1a;<\/p>\n<p>#mermaid-svg-LwssnMnbQeyxtJSc{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-LwssnMnbQeyxtJSc .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-LwssnMnbQeyxtJSc .error-icon{fill:#552222;}#mermaid-svg-LwssnMnbQeyxtJSc .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-LwssnMnbQeyxtJSc .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-LwssnMnbQeyxtJSc .marker{fill:#333333;stroke:#333333;}#mermaid-svg-LwssnMnbQeyxtJSc .marker.cross{stroke:#333333;}#mermaid-svg-LwssnMnbQeyxtJSc svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-LwssnMnbQeyxtJSc p{margin:0;}#mermaid-svg-LwssnMnbQeyxtJSc .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-LwssnMnbQeyxtJSc .cluster-label text{fill:#333;}#mermaid-svg-LwssnMnbQeyxtJSc .cluster-label span{color:#333;}#mermaid-svg-LwssnMnbQeyxtJSc .cluster-label span p{background-color:transparent;}#mermaid-svg-LwssnMnbQeyxtJSc .label text,#mermaid-svg-LwssnMnbQeyxtJSc span{fill:#333;color:#333;}#mermaid-svg-LwssnMnbQeyxtJSc .node rect,#mermaid-svg-LwssnMnbQeyxtJSc .node circle,#mermaid-svg-LwssnMnbQeyxtJSc .node ellipse,#mermaid-svg-LwssnMnbQeyxtJSc .node polygon,#mermaid-svg-LwssnMnbQeyxtJSc .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-LwssnMnbQeyxtJSc .rough-node .label text,#mermaid-svg-LwssnMnbQeyxtJSc .node .label text,#mermaid-svg-LwssnMnbQeyxtJSc .image-shape .label,#mermaid-svg-LwssnMnbQeyxtJSc .icon-shape .label{text-anchor:middle;}#mermaid-svg-LwssnMnbQeyxtJSc .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-LwssnMnbQeyxtJSc .rough-node .label,#mermaid-svg-LwssnMnbQeyxtJSc .node .label,#mermaid-svg-LwssnMnbQeyxtJSc .image-shape .label,#mermaid-svg-LwssnMnbQeyxtJSc .icon-shape .label{text-align:center;}#mermaid-svg-LwssnMnbQeyxtJSc .node.clickable{cursor:pointer;}#mermaid-svg-LwssnMnbQeyxtJSc .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-LwssnMnbQeyxtJSc .arrowheadPath{fill:#333333;}#mermaid-svg-LwssnMnbQeyxtJSc .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-LwssnMnbQeyxtJSc .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-LwssnMnbQeyxtJSc .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-LwssnMnbQeyxtJSc .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-LwssnMnbQeyxtJSc .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-LwssnMnbQeyxtJSc .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-LwssnMnbQeyxtJSc .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-LwssnMnbQeyxtJSc .cluster text{fill:#333;}#mermaid-svg-LwssnMnbQeyxtJSc .cluster span{color:#333;}#mermaid-svg-LwssnMnbQeyxtJSc div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-LwssnMnbQeyxtJSc .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-LwssnMnbQeyxtJSc rect.text{fill:none;stroke-width:0;}#mermaid-svg-LwssnMnbQeyxtJSc .icon-shape,#mermaid-svg-LwssnMnbQeyxtJSc .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-LwssnMnbQeyxtJSc .icon-shape p,#mermaid-svg-LwssnMnbQeyxtJSc .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-LwssnMnbQeyxtJSc .icon-shape .label rect,#mermaid-svg-LwssnMnbQeyxtJSc .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-LwssnMnbQeyxtJSc .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-LwssnMnbQeyxtJSc .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-LwssnMnbQeyxtJSc :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u2705 \u901a\u8fc7<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u274c \u4e0d\u5728\u767d\u540d\u5355<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2460 Client \u6ce8\u518c\u8868allowed audiences&#xff08;AS \u4fa7\u9759\u6001\u914d\u7f6e&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2461 Token \u8bf7\u6c42resource \u53c2\u6570&#xff08;RFC 8707&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>AS \u6821\u9a8c&#xff1a;\u8bf7\u6c42\u7684 audience\u2208 allowed audiences&#xff1f;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2462 \u7b7e\u53d1 Tokenaud claim &#061; \u8bf7\u6c42\u7684 audience<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u62d2\u7eddinvalid_target<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2463 RS \u9a8c\u7b7e\u65f6\u6821\u9a8caud &#061;&#061; \u81ea\u5df1<\/p>\n<p><\/span><\/p>\n<table>\n<tr>\u5c42\u6b21\u662f\u4ec0\u4e48\u4f8b\u5b50<\/tr>\n<tbody>\n<tr>\n<td>allowed audiences<\/td>\n<td>Client \u6ce8\u518c\u65f6\u5728 AS \u914d\u7f6e\u7684\u767d\u540d\u5355&#xff0c;\u58f0\u660e\u201c\u8fd9\u4e2a Client \u88ab\u5141\u8bb8\u4e3a\u54ea\u4e9b RS \u6362\u53d6 Token&#034;<\/td>\n<td>admin-bff-client \u2192 [admin-api, order-api, crm-api]<\/td>\n<\/tr>\n<tr>\n<td>resource \u53c2\u6570<\/td>\n<td>Client \u6bcf\u6b21\u53d1\u8d77\u6388\u6743\/Token \u8bf7\u6c42\u65f6\u52a8\u6001\u6307\u5b9a\u60f3\u8981\u7684 audience&#xff08;RFC 8707 Resource Indicators&#xff09;<\/td>\n<td>resource&#061;https:\/\/api.fdi.com\/order-api<\/td>\n<\/tr>\n<tr>\n<td>aud claim<\/td>\n<td>AS \u7b7e\u53d1\u7684 JWT \u91cc\u7684\u5b57\u6bb5&#xff0c;\u58f0\u660e\u201c\u8fd9\u5f20 Token \u662f\u53d1\u7ed9\u8c01\u7684&#034;<\/td>\n<td>&#034;aud&#034;: &#034;https:\/\/api.fdi.com\/order-api&#034;<\/td>\n<\/tr>\n<tr>\n<td>\u6d41\u7a0b\u4e32\u8d77\u6765\u5c31\u662f&#xff1a;\u8bf7\u6c42\u65f6\u5e26 resource \u2192 AS \u5148\u67e5 Client \u7684 allowed audiences \u767d\u540d\u5355 \u2192 \u901a\u8fc7\u624d\u7b7e\u53d1\u5bf9\u5e94 aud \u7684 Token \u2192 RS \u6536\u5230\u540e\u6821\u9a8c aud \u662f\u5426\u662f\u81ea\u5df1\u3002<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e8c\u3001\u672c\u67b6\u6784\u91cc\u5404 Client \u7684\u767d\u540d\u5355\u5b9e\u4f8b<\/h3>\n<table>\n<tr>Clientallowed audiences\u4e3a\u4ec0\u4e48\u662f\u8fd9\u4e2a\u8303\u56f4<\/tr>\n<tbody>\n<tr>\n<td>gateway-bff-client<\/td>\n<td>order-api, crm-api<\/td>\n<td>gateway \u524d\u7aef\u805a\u5408\u7684\u4e1a\u52a1\u5c31\u8fd9\u4e24\u4e2a\u57df<\/td>\n<\/tr>\n<tr>\n<td>admin-bff-client<\/td>\n<td>admin-api, order-api, crm-api<\/td>\n<td>admin \u81ea\u5df1\u7684 API &#043; \u5f20\u4e09\u67e5\u8ba2\u5355\u573a\u666f\u9700\u8981\u7684\u4e1a\u52a1\u6570\u636e\u57df<\/td>\n<\/tr>\n<tr>\n<td>gateway-m2m-client<\/td>\n<td>\u4ec5 open-api<\/td>\n<td>\u673a\u5668\u8eab\u4efd\u53ea\u8c03 admin \u5f00\u653e API&#xff0c;\u4e0d\u5141\u8bb8\u78b0\u4e1a\u52a1\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td>demo-service-client<\/td>\n<td>\u4ec5 order-api&#xff08;\u6216\u6309\u9700\u542b crm-api&#xff09;<\/td>\n<td>\u7b2c\u4e09\u65b9\u6700\u5c0f\u6388\u6743<\/td>\n<\/tr>\n<tr>\n<td>crm-m2m-client&#xff08;\u4e0a\u4e00\u8f6e\u65b0\u589e&#xff09;<\/td>\n<td>\u4ec5 open-api<\/td>\n<td>crm \u53ea\u53d6 admin \u7684\u7cfb\u7edf\u7ea7\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u4e00\u4e2a\u53cd\u4f8b\u8bf4\u660e\u4ef7\u503c&#xff1a;\u5982\u679c demo-service-client \u7684 Token \u8bf7\u6c42\u91cc\u5199 resource&#061;https:\/\/api.fdi.com\/admin-api&#xff0c;AS \u67e5\u767d\u540d\u5355\u53d1\u73b0\u4e0d\u542b\u6b64\u9879 \u2192 \u76f4\u63a5\u8fd4\u56de invalid_target \u9519\u8bef&#xff0c;Token \u6839\u672c\u7b7e\u4e0d\u51fa\u6765\u3002\u6ca1\u6709\u8fd9\u9053\u95f8\u95e8\u7684\u8bdd&#xff0c;\u4efb\u4f55 Client \u53ea\u8981\u80fd\u901a\u8fc7\u8ba4\u8bc1&#xff0c;\u7406\u8bba\u4e0a\u5c31\u80fd\u8bf7\u6c42\u6307\u5411\u4efb\u610f\u670d\u52a1\u7684 Token\u2014\u2014audience \u9694\u79bb\u7684\u9632\u7ebf\u5c31\u53ea\u5269 RS \u81ea\u5df1\u7684 aud \u6821\u9a8c\u4e00\u5c42\u4e86\u3002<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e09\u3001\u5b83\u548c scope \u662f\u4ec0\u4e48\u5173\u7cfb<\/h3>\n<p>\u4e24\u8005\u662f\u4e24\u4e2a\u7ef4\u5ea6\u7684\u6b63\u4ea4\u63a7\u5236&#xff0c;\u5171\u540c\u6784\u6210\u7b7e\u53d1\u65f6\u7684\u6743\u9650\u5224\u5b9a&#xff1a;<\/p>\n<p>\u6700\u7ec8 Token \u6743\u9650 &#061; audience \u5339\u914d&#xff08;allowed audiences \u2229 resource \u53c2\u6570&#xff09;<br \/>\n               \u00d7 scope \u5339\u914d&#xff08;client \u6ce8\u518c scopes \u2229 \u7528\u6237\u6388\u6743 scope&#xff09;<\/p>\n<ul>\n<li>audience \u56de\u7b54\u201c\u8fd9\u5f20 Token \u80fd\u6253\u5230\u54ea\u4e2a\u670d\u52a1\u201d\u2014\u2014\u7a7a\u95f4\u8fb9\u754c<\/li>\n<li>scope \u56de\u7b54\u201c\u8fd9\u5f20 Token \u5230\u4e86\u90a3\u91cc\u80fd\u5e72\u4ec0\u4e48\u201d\u2014\u2014\u884c\u4e3a\u8fb9\u754c<br \/>\n\u7c7b\u6bd4&#xff1a;audience \u662f\u201c\u901a\u884c\u8bc1\u5141\u8bb8\u8fdb\u54ea\u680b\u697c\u201d&#xff0c;scope \u662f\u201c\u8fdb\u4e86\u697c\u4e4b\u540e\u5141\u8bb8\u52a8\u54ea\u4e9b\u623f\u95f4\u201d\u3002\u53ea\u6709\u697c\u5bf9&#xff08;aud \u6821\u9a8c\u8fc7&#xff09;\u4e14\u623f\u95f4\u5bf9&#xff08;scope \u6821\u9a8c\u8fc7&#xff09;\u624d\u653e\u884c\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u3001\u5b9e\u73b0\u5c42\u9762\u7684\u8bf4\u660e<\/h3>\n<p>\u201callowed audiences\u201d \u8fd9\u4e2a\u5b57\u6bb5\u540d\u4e0d\u662f OAuth \u6807\u51c6\u91cc\u7684\u56fa\u5b9a\u53eb\u6cd5&#xff0c;\u662f\u5404 AS \u5b9e\u73b0\u91cc\u7684\u5e38\u89c1\u6982\u5ff5&#xff1a;<\/p>\n<table>\n<tr>AS \u5b9e\u73b0\u5bf9\u5e94\u673a\u5236<\/tr>\n<tbody>\n<tr>\n<td>Keycloak<\/td>\n<td>Client Scope &#043; Audience Mapper&#xff08;\u7ed9 client \u914d\u7f6e\u53ef\u83b7\u5f97\u7684 audience&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Spring Authorization Server<\/td>\n<td>\u65e0\u5185\u7f6e\u5b57\u6bb5&#xff0c;\u9700\u81ea\u5b9a\u4e49\u2014\u2014\u5728 OAuth2TokenCustomizer \u6216\u8bf7\u6c42\u6821\u9a8c\u5668\u91cc&#xff0c;\u6bd4\u5bf9\u8bf7\u6c42\u7684 resource\/audience \u53c2\u6570\u4e0e\u6ce8\u518c\u8868\u914d\u7f6e&#xff0c;\u4e0d\u5339\u914d\u5219\u62d2\u7edd<\/td>\n<\/tr>\n<tr>\n<td>Auth0<\/td>\n<td>\u201cAPI \u6388\u6743\u201d&#xff1a;\u7ed9 client \u6388\u6743\u53ef\u8bbf\u95ee\u54ea\u4e9b API&#xff08;\u6bcf\u4e2a API \u5c31\u662f\u4e00\u4e2a audience&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6807\u51c6\u4f9d\u636e\u662f RFC 8707&#xff08;Resource Indicators for OAuth 2.0&#xff09;&#xff1a;\u8bf7\u6c42\u7528 resource \u53c2\u6570\u6307\u5b9a\u76ee\u6807 RS&#xff0c;AS \u5fc5\u987b\u628a\u7b7e\u53d1 Token \u7684 aud \u7ed1\u5b9a\u5230\u8be5 resource&#xff0c;\u5e76\u5efa\u8bae AS \u505a\u5ba2\u6237\u7aef\u7ea7\u7684 resource \u767d\u540d\u5355\u6821\u9a8c\u3002\u672c\u6587\u6863\u91cc\u7684 allowed audiences \u5c31\u662f\u8fd9\u4e2a\u201c\u5efa\u8bae\u201d\u7684\u843d\u5730\u5f62\u5f0f\u3002<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e94\u3001\u5c0f\u7ed3<\/h3>\n<ul>\n<li>JWT \u7684 aud claim&#xff1a;Token \u4e0a\u5199\u7684\u201c\u53d1\u7ed9\u8c01\u201d&#xff0c;RS \u636e\u6b64\u62d2\u7edd\u8f6c\u53d1\u6765\u7684\u522b\u5bb6 Token\u2014\u2014\u8fd9\u662f\u6536\u8d27\u65b9\u7684\u6821\u9a8c\u3002<\/li>\n<li>allowed audiences&#xff1a;AS \u4e0a\u914d\u7684\u201c\u8fd9\u4e2a Client \u53ea\u8bb8\u8981\u8c01\u5bb6\u7684 Token\u201d\u2014\u2014\u8fd9\u662f\u53d1\u8d27\u65b9\u7684\u6821\u9a8c\u3002<\/li>\n<li>\u4e24\u9053\u95f8\u95e8\u524d\u540e\u5939\u51fb&#xff1a;\u5373\u4f7f\u67d0\u4e2a Client \u88ab\u653b\u7834\u6216\u914d\u7f6e\u5931\u8bef&#xff0c;\u5b83\u4e5f\u62ff\u4e0d\u5230\u767d\u540d\u5355\u4e4b\u5916\u670d\u52a1\u7684 Token&#xff1b;\u5373\u4f7f\u6709\u4eba\u622a\u83b7 Token \u60f3\u6295\u9012\u5230\u522b\u5904&#xff0c;RS \u7684 aud \u6821\u9a8c\u4e5f\u62d2\u6536\u3002\u6536\u53d1\u4e24\u7aef\u90fd\u5c01\u6b7b&#xff0c;audience \u9694\u79bb\u624d\u7b97\u771f\u6b63\u95ed\u73af\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Audience \u767d\u540d\u5355<br \/>\n\u4e00\u53e5\u8bdd\u5b9a\u4e49&#xff1a;allowed audiences \u662f Auth Server \u4fa7\u7ed9\u6bcf\u4e2a Client \u914d\u7f6e\u7684\u201caudience \u767d\u540d\u5355\u201d\u2014\u2014\u89c4\u5b9a\u8fd9\u4e2a Client \u6700\u591a\u53ea\u80fd\u62ff\u5230\u6307\u5411\u54ea\u4e9b Resource Server \u7684 Token\u3002\u5b83\u662f Token \u7b7e\u53d1\u73af\u8282\u7684\u7b2c\u4e00\u9053\u95f8\u95e8\u3002<br \/>\n\u4e00\u3001\u5b83\u5728\u6574\u6761\u94fe\u8def\u91cc\u7684\u4f4d\u7f6e<br \/>\n\u7406\u89e3\u5b83\u9700\u8981\u628a\u4e09\u4e2a\u5c42\u6b21\u7684\\&#8221;audience\\&#8221;\u533a\u5206\u5f00&#xff0c;\u5b83\u4eec\u662f\u4e00\u6761\u94fe\u4e0a\u7684\u4e09\u73af&#xff1a;<br \/>\n#mermaid-svg-LwssnM<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,1188,188],"topic":[],"class_list":["post-120567","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-oauth2","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/120567.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Audience \u767d\u540d\u5355 \u4e00\u53e5\u8bdd\u5b9a\u4e49&#xff1a;allowed audiences \u662f Auth Server \u4fa7\u7ed9\u6bcf\u4e2a Client \u914d\u7f6e\u7684\u201caudience \u767d\u540d\u5355\u201d\u2014\u2014\u89c4\u5b9a\u8fd9\u4e2a Client \u6700\u591a\u53ea\u80fd\u62ff\u5230\u6307\u5411\u54ea\u4e9b Resource Server \u7684 Token\u3002\u5b83\u662f Token \u7b7e\u53d1\u73af\u8282\u7684\u7b2c\u4e00\u9053\u95f8\u95e8\u3002 \u4e00\u3001\u5b83\u5728\u6574\u6761\u94fe\u8def\u91cc\u7684\u4f4d\u7f6e \u7406\u89e3\u5b83\u9700\u8981\u628a\u4e09\u4e2a\u5c42\u6b21\u7684&quot;audience&quot;\u533a\u5206\u5f00&#xff0c;\u5b83\u4eec\u662f\u4e00\u6761\u94fe\u4e0a\u7684\u4e09\u73af&#xff1a; #mermaid-svg-LwssnM\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120567.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-31T15:46:22+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120567.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120567.html\",\"name\":\"Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-31T15:46:22+00:00\",\"dateModified\":\"2026-10-31T15:46:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120567.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120567.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120567.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Audience \u767d\u540d\u5355\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/120567.html","og_locale":"zh_CN","og_type":"article","og_title":"Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Audience \u767d\u540d\u5355 \u4e00\u53e5\u8bdd\u5b9a\u4e49&#xff1a;allowed audiences \u662f Auth Server \u4fa7\u7ed9\u6bcf\u4e2a Client \u914d\u7f6e\u7684\u201caudience \u767d\u540d\u5355\u201d\u2014\u2014\u89c4\u5b9a\u8fd9\u4e2a Client \u6700\u591a\u53ea\u80fd\u62ff\u5230\u6307\u5411\u54ea\u4e9b Resource Server \u7684 Token\u3002\u5b83\u662f Token \u7b7e\u53d1\u73af\u8282\u7684\u7b2c\u4e00\u9053\u95f8\u95e8\u3002 \u4e00\u3001\u5b83\u5728\u6574\u6761\u94fe\u8def\u91cc\u7684\u4f4d\u7f6e \u7406\u89e3\u5b83\u9700\u8981\u628a\u4e09\u4e2a\u5c42\u6b21\u7684\"audience\"\u533a\u5206\u5f00&#xff0c;\u5b83\u4eec\u662f\u4e00\u6761\u94fe\u4e0a\u7684\u4e09\u73af&#xff1a; #mermaid-svg-LwssnM","og_url":"https:\/\/www.wsisp.com\/helps\/120567.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-31T15:46:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120567.html","url":"https:\/\/www.wsisp.com\/helps\/120567.html","name":"Audience \u767d\u540d\u5355 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-31T15:46:22+00:00","dateModified":"2026-10-31T15:46:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120567.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120567.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120567.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Audience \u767d\u540d\u5355"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=120567"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120567\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120567"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}