From 5d62a9aeb1747b6300164f05cc870fd9aec1f6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8B=BF=E5=AE=A2?= Date: Tue, 8 Feb 2022 03:33:41 +0000 Subject: [PATCH] =?UTF-8?q?update=20sa-token-doc/doc/oauth2/oauth2-server.?= =?UTF-8?q?md.=20=E7=BC=BA=E5=B0=91=20.setIsAutoMode(true)=20=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=20{"code":500,"msg":"=E6=9A=82=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E6=94=BE=E7=9A=84=E6=8E=88=E6=9D=83=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?","data":null}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa-token-doc/doc/oauth2/oauth2-server.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sa-token-doc/doc/oauth2/oauth2-server.md b/sa-token-doc/doc/oauth2/oauth2-server.md index 6941b7d4..46b47b56 100644 --- a/sa-token-doc/doc/oauth2/oauth2-server.md +++ b/sa-token-doc/doc/oauth2/oauth2-server.md @@ -47,7 +47,8 @@ public class SaOAuth2TemplateImpl extends SaOAuth2Template { .setClientId("10001") .setClientSecret("aaaa-bbbb-cccc-dddd-eeee") .setAllowUrl("*") - .setContractScope("userinfo"); + .setContractScope("userinfo") + .setIsAutoMode(true); } return null; }